Skip to content

Commit

Permalink
Add Capture::Tiny DateTime modules to code_coverage CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie256 committed May 24, 2024
1 parent 425e718 commit 902a178
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ jobs:
with:
submodules: true
persist-credentials: false

- name: Set up Perl environment
run: sudo apt-get install -y cpanminus

- name: Install Capture::Tiny and DateTime modules
run: |
sudo cpanm Capture::Tiny
sudo cpanm DateTime
- name: Download and install lcov
run: |
VERSION="2.1"
Expand All @@ -28,14 +37,19 @@ jobs:
tar -xzf "lcov-$VERSION.tar.gz"
cd "lcov-$VERSION"
sudo make install
- name: Configure
run: cd build && cmake .. -DCOVERAGE=ON

- name: Build unit tests
run: cmake --build build

- name: Run tests
run: cmake --build build --target test

- name: Generate coverage .info
run: cmake --build build --target coverage_report

- name: Post to Coveralls
uses: coverallsapp/github-action@main
with:
Expand Down

0 comments on commit 902a178

Please sign in to comment.