name: Go on: push: branches: [ master ] pull_request: branches: [ master ] permissions: contents: read jobs: build: name: Build runs-on: ubuntu-latest steps: - name: Set up Go 1.x uses: actions/setup-go@v3 with: go-version: ^1.19 id: go - name: Check out code into the Go module directory uses: actions/checkout@v3 - name: Get dependencies run: go get -v -t -d ./... - name: Build run: go build -v ./... - name: golangci-lint uses: golangci/golangci-lint-action@v3 - name: Test run: go test -v .