diff --git a/.github/workflows/gobuild.yml b/.github/workflows/gobuild.yml new file mode 100644 index 0000000..3d08e51 --- /dev/null +++ b/.github/workflows/gobuild.yml @@ -0,0 +1,36 @@ +# This workflow will run checks and validate the build + +name: GoBuild + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '1.18' + + - name: Install Dependencies + run: | + go install honnef.co/go/tools/cmd/staticcheck@latest + go mod tidy + + - name: Lint & Vet + run: | + go vet . + staticcheck . + + - name: Build Validation + run: go build . + \ No newline at end of file