Skip to content

Commit

Permalink
adding github workflow and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SQLJames committed Apr 10, 2024
1 parent 18ec585 commit 68be1dd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 13 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- id: govulncheck
name: Run govulncheck
uses: golang/govulncheck-action@v1
11 changes: 0 additions & 11 deletions example/main.go

This file was deleted.

2 changes: 0 additions & 2 deletions makefile

This file was deleted.

4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# go-version
This is a simple go version manager. It allows you to print the current version of the application dynamically by taking advantage of the -ldflags option in the go build command.

The main idea is to have a centralize place to manage the version of the application. This is useful when you have multiple microservices and you want to have a consistent way to manage the version of the application.

0 comments on commit 68be1dd

Please sign in to comment.