Merge pull request #11 from st235/feature/pedantic_warnings #51
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: build-and-run-tests | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
build-and-test-project: | |
name: Build Project | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Configure and Build Project | |
uses: threeal/cmake-action@main | |
with: | |
source-dir: ${{github.workspace}} | |
build-dir: ${{github.workspace}}/build/ | |
options: ASSERT=ON | |
- name: Run tests | |
working-directory: ${{github.workspace}}/build/ | |
run: | | |
ctest --output-on-failure |