From cbe2520bd33bdb437c4997631c39b35dd361207c Mon Sep 17 00:00:00 2001 From: cbeimers113 Date: Sun, 23 Jul 2023 15:27:44 -0400 Subject: [PATCH] Tests and validation pipeline --- .github/workflows/gobuild.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/gobuild.yml 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