aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: 150babeaeb8e3563e287819256fe254440b47c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later

name: build
on: [push, pull_request]
jobs:
  tests:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@master
      - uses: actions/setup-go@v2
        with:
          go-version: '1.14'
      - name: Run tests
        run: go test -v -covermode=count -coverprofile=profile.cov ./...
      - name: Send coverage report to coveralls
        uses: shogo82148/actions-goveralls@v1
        with:
          path-to-profile: profile.cov