Skip to content

Bump external/googletest from a7f443b to 34ad51b (#260) #48

Bump external/googletest from a7f443b to 34ad51b (#260)

Bump external/googletest from a7f443b to 34ad51b (#260) #48

name: "Coverage"
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
analyze_main:
name: Analyze Local
if: github.repository_owner == 'ParadoxGameConverters'
runs-on: [self-hosted, linux]
strategy:
fail-fast: false
matrix:
language: ['cpp']
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Build solution
run: |
cmake -H. -Bbuild && cmake --build ./build --target CommonItemsTests -- -j40
- name: Run tests
run: |
cd build
./CommonItemsTests
- name: Run gcov
run: |
cd build
make gcov
- name: Run lcov
run: |
cd build
make lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: build/lcoverage/coverage.info
- uses: actions/upload-artifact@v4
with:
name: coverage-report
path: build/lcoverage/
- name: Cleanup
uses: colpal/actions-clean@v1
if: always()
analyze:
name: Analyze Foreign
if: github.repository_owner != 'ParadoxGameConverters'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ['cpp']
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Build solution
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev lcov
cmake -H. -Bbuild && cmake --build ./build --target CommonItemsTests -- -j3
- name: Run tests
run: |
cd build
./CommonItemsTests
- name: Run gcov
run: |
cd build
make gcov
- name: Run lcov
run: |
cd build
pwd
make lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: build/lcoverage/coverage.info
- name: Cleanup
uses: colpal/actions-clean@v1
if: always()