[nasa/nos3#407] Read coverage for whole directory #233
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 | |
on: | |
push: | |
pull_request: | |
env: | |
CTEST_OUTPUT_ON_FAILURE: true | |
jobs: | |
fsw: | |
runs-on: ubuntu-latest | |
container: | |
image: ivvitc/nos3-64:20241010 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
submodules: recursive | |
- name: config | |
run: make config | |
- name: build | |
run: make build-test | |
- name: test | |
run: make test-fsw | |
sim: | |
runs-on: ubuntu-latest | |
container: | |
image: ivvitc/nos3-64:20241010 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
submodules: recursive | |
- name: config | |
run: make config | |
- name: build | |
run: make build-sim | |
sample: | |
runs-on: ubuntu-latest | |
container: | |
image: ivvitc/nos3-64:20241010 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
submodules: recursive | |
- name: Update | |
run: apt-get update | |
- name: install dependencies | |
run: apt-get install -y gcc lcov | |
- name: config | |
run: make config | |
- name: build-test | |
run: make build-test | |
- name: sample | |
run: make coverage-sample | |
- name: Generate Coverage Report | |
run: | | |
lcov --capture --directory . --output-file coverage.info | |
lcov --remove coverage.info './*' --output-file coverage.info | |
genhtml coverage.info --output-directory coverage | |
- name: Upload Coverage Report as Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-report | |
path: coverage |