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

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