Skip to content

Commit bb3d58e

Browse files
swuferhongZmmBigdata
authored andcommitted
[ci] upload jacoco report when running main branch (apache#859)
1 parent 2ff0b39 commit bb3d58e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
timeout-minutes: 60
4646
run: |
4747
TEST_MODULES=$(./.github/workflows/stage.sh ${{ matrix.module }})
48+
echo "github ref: ${{ github.ref }}"
4849
echo "Start testing modules: $TEST_MODULES"
4950
mvn -B verify $TEST_MODULES -Ptest-coverage -Ptest-${{ matrix.module }} -Dlog.dir=${{ runner.temp }}/fluss-logs -Dlog4j.configurationFile=${{ github.workspace }}/tools/ci/log4j.properties
5051
env:
@@ -61,4 +62,10 @@ jobs:
6162
if: ${{ failure() }}
6263
with:
6364
name: logs-test-${{ matrix.module }}-${{ github.run_number}}#${{ github.run_attempt }}
64-
path: ${{ runner.temp }}/fluss-logs/*
65+
path: ${{ runner.temp }}/fluss-logs/*
66+
- name: Upload JaCoCo coverage report
67+
uses: actions/upload-artifact@v4
68+
if: ${{ success() && github.ref == 'refs/heads/main' }}
69+
with:
70+
name: jacoco-report-${{ matrix.module }}-${{ github.run_number}}#${{ github.run_attempt }}
71+
path: ${{ github.workspace }}/fluss-test-coverage/target/site/jacoco-aggregate/*

0 commit comments

Comments
 (0)