diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/coverage.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 00000000..6274bbd0 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,31 @@ +name: coverage +on: [push] +jobs: + + build: + name: build + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, macos-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
\ No newline at end of file |
