Bump googletest from 79219e2
to 7d76a23
#1243
Workflow file for this run
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: CodeCov | |
on: | |
push: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
permissions: | |
contents: read | |
jobs: | |
codecov: | |
name: Build | |
runs-on: ubuntu-latest | |
env: | |
BUILD_DIR: build_codecov | |
GCC_VERSION: 12 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: 'True' | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake g++-12 lcov ninja-build | |
- name: Configure Build | |
run: | | |
mkdir "$BUILD_DIR" | |
cmake \ | |
-G Ninja \ | |
-S . \ | |
-B "$BUILD_DIR" \ | |
-D ICUBABY_COVERAGE=Yes \ | |
-D ICUBABT_STANDALONE=Yes \ | |
-D CMAKE_C_COMPILER="gcc-$GCC_VERSION" \ | |
-D CMAKE_CXX_COMPILER="g++-$GCC_VERSION" | |
- name: Build | |
run: | | |
cmake --build "$BUILD_DIR" | |
- name: Run the Test Binaries | |
run: | | |
./tests/runtests.py "$BUILD_DIR" | |
- name: Collect the Coverage | |
run: | | |
set -x | |
lcov \ | |
--capture \ | |
--output-file coverage.info \ | |
--directory "$BUILD_DIR" \ | |
--gcov-tool "gcov-$GCC_VERSION" \ | |
--include "$(pwd)/*.?pp" \ | |
--ignore-errors mismatch | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |