ποΈ resolve segfault #151
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: β run tests | |
on: | |
push: | |
branches: [dev] | |
pull_request: | |
branches: [dev] | |
jobs: | |
run-tests: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: π Install build-essentials | |
run: brew install gcc cmake make gcovr | |
- name: π οΈ Build and Run Tests | |
run: | | |
cmake -B./build -DENABLE_COVERAGE=ON . | |
cmake --build ./build --target minirt_test | |
./build/minirt_test | |
- name: π Generate coverage report | |
run: | | |
mkdir ./build/reports | |
gcovr -r . -e 'build/_deps/*' -e 'build/test/*' -o './build/reports/test-coverage.html' | |
- name: πͺ Upload Test Coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./build/reports/test-coverage.html | |
flags: unit_test | |
fail_ci_if_error: true | |
verbose: true |