Add Option to Enable Test Targets #140
Workflow file for this run
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: Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
test-project: | |
name: Test Project | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu, windows] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Configure Project | |
uses: threeal/[email protected] | |
with: | |
options: MY_FIBONACCI_ENABLE_TESTS=ON | |
- name: Build Project | |
run: cmake --build build | |
- name: Test Project | |
uses: threeal/[email protected] | |
with: | |
build-config: Debug | |
- name: Check Coverage | |
if: ${{ matrix.os != 'windows' }} | |
uses: threeal/[email protected] | |
with: | |
excludes: build/* | |
fail-under-line: 100 |