aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/coverage.yml
blob: 74db07150ffe31a6354065cc5af68028f25f16d7 (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
28
29
30
31
name: coverage
on: [push]
jobs:

  build:
    name: build
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ ubuntu-latest ]
    steps:
    - name: Check out code
      uses: actions/checkout@v1

    - name: Configure
      run: |
        mkdir build
        cd build
        cmake -D NNG_ENABLE_COVERAGE=ON ..

    - name: build
      run: cmake --build build

    - name: Test
      run: cd build && ctest --output-on-failure

    - name: Upload report
      uses: codecov/codecov-action@v1
      with:
        token: ${{ secrets.CODECOV_TOKEN }}
        yml: ./.codecov.yml