name: build on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/setup-go@v3 with: go-version: 1.18 - uses: actions/checkout@v3 - name: Build run: go build -v ./... - name: Test run: go test -v ./... -covermode=count -coverprofile=cover.out - name: Vet run: go vet ./... - uses: codecov/codecov-action@v1 with: flags: unittests