Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# name: MacOS CI Test
name: MacOS CI Test

# on:
# push:
# branches: [ main, master, dev ]
# pull_request:
# branches: [ main, master, dev ]
on:
push:
branches: [ main, master, dev ]
pull_request:
branches: [ main, master, dev ]

# jobs:
# build:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v2
# - name: prepare
# run: |
# make prepare
# - name: configure
# run: |
# cmake -H. -Bbuild -DCMAKE_BUILD_TYPE="Debug"
# - name: building and testing
# run: |
# cmake --build build --config Debug
# cd build
# ctest .
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: prepare
run: |
make prepare
- name: configure
run: |
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE="Debug"
- name: building and testing
run: |
cmake --build build --config Debug
cd build
ctest .
86 changes: 43 additions & 43 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
# name: Ubuntu CI Test
name: Ubuntu CI Test

# on:
# push:
# branches: [ main, master, dev ]
# pull_request:
# branches: [ main, master, dev ]
on:
push:
branches: [ main, master, dev ]
pull_request:
branches: [ main, master, dev ]

# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: install
# run: |
# pip install --user -U gcovr
# - name: prepare
# run: |
# make prepare
# - name: configure
# run: |
# cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=On
# - name: building and testing
# run: |
# cmake --build build --config Debug --target coverage -j4
# cd build
# ctest .
# - name: Code Coverage Report
# uses: irongut/CodeCoverageSummary@v1.3.0
# with:
# filename: build/coverage/coverage.cobertura.xml
# badge: true
# fail_below_min: true
# format: markdown
# hide_branch_rate: false
# hide_complexity: true
# indicators: true
# output: both
# thresholds: '60 80'
# - name: Add Coverage PR Comment
# uses: marocchino/sticky-pull-request-comment@v2
# if: github.event_name == 'pull_request'
# with:
# recreate: true
# path: code-coverage-results.md
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install
run: |
pip install --user -U gcovr
- name: prepare
run: |
make prepare
- name: configure
run: |
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=On
- name: building and testing
run: |
cmake --build build --config Debug --target coverage -j4
cd build
ctest .
- name: Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: build/coverage/coverage.cobertura.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
44 changes: 22 additions & 22 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# name: Windows CI Test
name: Windows CI Test

# on:
# push:
# branches: [ main, master, dev ]
# pull_request:
# branches: [ main, master, dev ]
on:
push:
branches: [ main, master, dev ]
pull_request:
branches: [ main, master, dev ]

# jobs:
# build:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v2
# - name: prepare
# run: |
# make prepare
# - name: configure
# run: |
# cmake -H"." -Bbuild -T host=x86 -A x64 -DCMAKE_BUILD_TYPE="Debug"
# - name: building and testing
# run: |
# cmake --build build --config Debug
# cd build
# ctest .
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: prepare
run: |
make prepare
- name: configure
run: |
cmake -H"." -Bbuild -T host=x86 -A x64 -DCMAKE_BUILD_TYPE="Debug"
- name: building and testing
run: |
cmake --build build --config Debug
cd build
ctest .
11 changes: 6 additions & 5 deletions cmake/CodeCoverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ function(setup_target_for_coverage_gcovr_html)
--json-summary
--json-summary-pretty
--html-theme
blue)
github.dark-green
--gcov-ignore-errors=no_working_dir_found) # ABR added since workflow `.github/workflows/ubuntu.yml` failed
set(GCOVR_HTML_CMD
${GCOVR_PATH}
${GCOVR_EXTRA_FLAGS}
Expand All @@ -145,10 +146,10 @@ function(setup_target_for_coverage_gcovr_html)
--json-summary
${Coverage_NAME}/summary.json
--json-summary-pretty
# --cobertura
# ${Coverage_NAME}/coverage.cobertura.xml
# --cobertura-pretty
# --decisions
--cobertura
${Coverage_NAME}/coverage.cobertura.xml
--cobertura-pretty
--decisions
-r
${BASEDIR}
${GCOVR_ADDITIONAL_ARGS}
Expand Down
10 changes: 10 additions & 0 deletions notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,13 @@
- [Creating an Example Workflow](https://docs.github.com/en/actions/use-cases-and-examples/creating-an-example-workflow)
- [GitHub Actions](https://github.com/actions) for automate your GitHub workflows
- [Disable/Enabling workflows](https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/disabling-and-enabling-a-workflow?tool=webui)

- **GitHub Pull Requests**:
- [Git Pull Request](https://www.geeksforgeeks.org/git-pull-request/)
- In GitLab is called Merge Request

- **GitHub Actions** for Unit Testing and Code Coverage:
- Following workflows:
- [MAC OS](.github/workflows/macos.yml)
- [Ubuntu](.github/workflows/ubuntu.yml)
- [Windows](.github/workflows/windows.yml)
Loading