Use REQUIRE_THROWS_WITH to check for error message #68
Workflow file for this run
This file contains hidden or 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: Sanitize | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| env: | |
| BUILD_TYPE: Release | |
| jobs: | |
| build: | |
| name: Address Sanitizer | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| persist-credentials: false | |
| - name: Configure | |
| run: cmake -B build -S . -DSANITIZE=address | |
| - name: Build C++ unit tests | |
| run: cmake --build build --config Release | |
| - name: Run C++ tests | |
| run: cmake --build build --config Release --target test |