mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-02 04:06:58 -05:00
32 lines
635 B
YAML
Executable file
32 lines
635 B
YAML
Executable file
name: Code Coverage
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- 'doc/**'
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- 'doc/**'
|
|
|
|
jobs:
|
|
code-coverage:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: cmake -E make_directory build
|
|
|
|
- working-directory: build/
|
|
run: cmake $GITHUB_WORKSPACE -DPEGTL_BUILD_EXAMPLES=OFF -DCMAKE_CXX_FLAGS="-coverage"
|
|
|
|
- working-directory: build/
|
|
run: cmake --build .
|
|
|
|
- working-directory: build/
|
|
run: ctest --output-on-failure
|
|
|
|
- working-directory: build/
|
|
run: bash <(curl -s https://codecov.io/bash)
|