1# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 2 3name: build 4on: [push, pull_request] 5jobs: 6 tests: 7 runs-on: ubuntu-20.04 8 steps: 9 - uses: actions/checkout@main 10 - uses: actions/setup-go@v2 11 with: 12 go-version: '1.18' 13 - name: Run tests 14 run: go test -v -covermode=count -coverprofile=profile.cov ./... 15 - name: Send coverage report to coveralls 16 uses: shogo82148/actions-goveralls@v1 17 with: 18 path-to-profile: profile.cov 19