This is an automated email from the ASF dual-hosted git repository. haonan pushed a commit to branch support_codecov in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit b104619a1610a811d0623a1fe09fe890e995ca91 Author: HTHou <[email protected]> AuthorDate: Tue Jul 30 11:02:29 2024 +0800 split codecov workflow --- .github/workflows/code-coverage.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml new file mode 100644 index 00000000..66f6e680 --- /dev/null +++ b/.github/workflows/code-coverage.yml @@ -0,0 +1,34 @@ +name: Code Coverage +on: + push: + branches: + - develop + 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: | + ./mvnw -B -P with-java,with-cpp,with-python,with-code-coverage clean verify post-integration-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
