Skip to content

feat: add codecov github action #3

feat: add codecov github action

feat: add codecov github action #3

Workflow file for this run

name: Coverage
on:
pull_request:
branches: [ develop, main, release/** ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Prepare on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ubuntu-latest

Check failure on line 18 in .github/workflows/coverage.yml

View workflow run for this annotation

GitHub Actions / Coverage

Invalid workflow file

The workflow is not valid. .github/workflows/coverage.yml (Line: 18, Col: 13): Unexpected value 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update
if: startswith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
- name: Restore build caches
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
- name: Install Metasystem
env:
TERM: linux
run: |
./scripts/install_metasystem.sh
- name: Build cxx tests
run: |
./build_ps.sh --cmake-arg "-DSC_SANITIZER=ON" -t
- name: Prepare coverage
run: |
./scripts/ci/prepare_coverage.sh
- name: Run cxx tests
run: |
./tests/run_cxx_ps_tests.sh
- name: Export coverage
run: |
./scripts/ci/export_coverage.sh
- name: Upload coverage report to CodeCov
uses: codecov/codecov-action@v3
with:
directory: ${{github.workspace}}/build
files: coverage.info
flags: unittests
fail_ci_if_error: true
name: codecov-umbrella
verbose: true