aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
blob: 21791d37477abaec645d5de65067944f44c06c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: test

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v3
      with:
        fetch-depth: 0
        submodules: recursive

    - name: Install Go
      uses: actions/setup-go@v3
      with:
        go-version: 1.18.x

    - name: Test
      run: |
        go test ./... -coverprofile=profile.cov

    - uses: shogo82148/actions-goveralls@v1.6.0
      with:
        path-to-profile: profile.cov