name: build on: push: pull_request: branches: [master] jobs: build: name: build runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Setup Go 1.17 uses: actions/setup-go@v2 with: go-version: ^1.17 - name: Build run: make build - name: Tests run: go test ./... -v -race -cover -covermode=count -coverprofile=coverage.txt - name: Upload Coverage uses: codecov/codecov-action@v1.0.0 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt