From 902a178e913317b3f5161d79e2538f153c0aa375 Mon Sep 17 00:00:00 2001 From: Jamie Broomall Date: Fri, 24 May 2024 10:18:19 -0700 Subject: [PATCH] Add Capture::Tiny DateTime modules to code_coverage CI workflow --- .github/workflows/code_coverage.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index c695130..453a526 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -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" @@ -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: