Skip to content

Workflow file for this run

name: Code Coverage
on:
push:
branches:
- develop
- code_coverage_v2
paths-ignore:
- 'docs/**'
pull_request:
branches:
- develop
paths-ignore:
- 'docs/**'
jobs:
codecov:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'apache/tsfile' || github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
- name: Test
run: |
sudo apt-get install lcov
./mvnw -B -P with-cpp,with-code-coverage clean verify
ll cpp/target/build/test
# - name: Upload coverage reports to codecov
# uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./code-coverage/target/jacoco-merged-reports/jacoco.xml