Skip to content

Commit b7f797a

Browse files
committed
ci: fix
1 parent 34b7b14 commit b7f797a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build-test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ jobs:
3939
- name: Execute Java unit tests
4040
env:
4141
MVN_ARGS: '-B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
42-
run: mvn verify -fae -DskipITs -Dskip.unit.tests $MVN_ARGS
42+
run: mvn verify -fae -DskipITs $MVN_ARGS
4343

4444
- name: Publish Java code coverage
45-
env:
46-
TRAVIS_BRANCH: ${{ github.ref }} # non PR only need to get last part
47-
TRAVIS_PULL_REQUEST: ${{ github.event.number }}
48-
TRAVIS_TAG: ${{ github.event.release.tag_name }}
49-
run: build/publishCodeCoverage.sh
45+
if: github.ref == 'refs/heads/master'
46+
run: $HOME/codecov-bash.sh -s modules/coverage-reports/target/site/jacoco-aggregate -t $CODECOV_TOKEN
47+
48+
- name: Do not Publish Java code coverage
49+
if: !github.ref == 'refs/heads/master'
50+
printf ">>>>> Bypassing code coverage publish step for feature branch/PR build.\n"

0 commit comments

Comments
 (0)