diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 4821a79..18e7fc1 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -39,3 +39,20 @@ jobs: run: cmake --build build - name: test run: cd build && ctest --output-on-failure + + ci_test_coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: cmake + run: cmake -S . -B build + - name: build + run: cmake --build build --target ci_test_coverage + - name: archive coverage report + uses: actions/upload-artifact@v2 + with: + name: code-coverage-report + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index acdfee0..7c58c55 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ [![Ubuntu](https://github.com/AmadeusITGroup/amc/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/AmadeusITGroup/amc/actions/workflows/ubuntu.yml) [![Windows](https://github.com/AmadeusITGroup/amc/actions/workflows/windows.yml/badge.svg)](https://github.com/AmadeusITGroup/amc/actions/workflows/windows.yml) [![MacOS](https://github.com/AmadeusITGroup/amc/actions/workflows/macos.yml/badge.svg)](https://github.com/AmadeusITGroup/amc/actions/workflows/macos.yml) +[![Coverage Status](https://coveralls.io/repos/github/AmadeusITGroup/amc/badge.svg)](https://coveralls.io/github/AmadeusITGroup/amc) # AMadeus (C++) Containers