diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2d32844 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build + +on: + push: + branches: [ develop, master ] + pull_request: + branches: [ "develop" ] + +jobs: + + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: [ '1.19', '1.20', '1.21.x' ] + - name: Gomod + run: go mod download + - name: Golint + run: hack/verify-golint.sh + - name: Gofmt + run: hack/verify-gofmt.sh + - name: Go vet + run: hack/verify-govet.sh + - name: Test + run: go test -race -cover ./...