Skip to content

Commit bcbdb86

Browse files
authored
Try to fix codecov lose for PR. (#12465)
* Try to fix codecov lose for PR. * Try to fix codecov lose for PR. * Try to fix codecov lose for PR. * Try to fix codecov lose for PR. * Try to fix codecov lose for PR. * Try to fix codecov lose for PR. * Try to fix codecov lose for PR.
1 parent 5d8d81a commit bcbdb86

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ name: "Continuous Integration"
66
on:
77
push:
88
branches: [ master, develop, v1.x-develop, v1.X ]
9-
pull_request:
9+
pull_request_target:
1010
branches: [ develop, v1.x-develop ]
1111

12-
permissions:
13-
contents: read # to fetch code (actions/checkout)
12+
permissions: read-all
1413

1514
jobs:
1615
ci:
@@ -21,16 +20,16 @@ jobs:
2120
java: [8]
2221
steps:
2322
- name: "Cache Maven Repos"
24-
uses: actions/cache@v3
23+
uses: actions/cache@v4
2524
with:
2625
path: ~/.m2/repository
2726
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
2827
restore-keys: |
2928
${{ runner.os }}-maven-
3029
- name: "Checkout"
31-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3231
- name: "Set up JDK ${{ matrix.java }}"
33-
uses: actions/setup-java@v3
32+
uses: actions/setup-java@v4
3433
with:
3534
java-version: ${{ matrix.java }}
3635
distribution: 'zulu'
@@ -44,7 +43,11 @@ jobs:
4443
- name: "Test With Maven"
4544
run: mvn -Prelease-nacos clean test -DtrimStackTrace=false -e -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
4645
- name: "Codecov"
47-
uses: codecov/[email protected]
46+
uses: codecov/[email protected]
47+
env:
48+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4849
with:
50+
verbose: true
51+
fail_ci_if_error: true
4952
files: ./address/target/site/jacoco/jacoco.xml,./api/target/site/jacoco/jacoco.xml,./auth/target/site/jacoco/jacoco.xml,./client/target/site/jacoco/jacoco.xml,./common/target/site/jacoco/jacoco.xml,./config/target/site/jacoco/jacoco.xml,./consistency/target/site/jacoco/jacoco.xml,./console/target/site/jacoco/jacoco.xml,./core/target/site/jacoco/jacoco.xml,./logger-adapter-impl/log4j2-adapter/target/site/jacoco/jacoco.xml,./logger-adapter-impl/logback-adapter-12/target/site/jacoco/jacoco.xml,./naming/target/site/jacoco/jacoco.xml,./persistence/target/site/jacoco/jacoco.xml,./plugin-default-impl/nacos-default-auth-plugin/target/site/jacoco/jacoco.xml,./plugin-default-impl/nacos-default-control-plugin/target/site/jacoco/jacoco.xml,./plugin/auth/target/site/jacoco/jacoco.xml,./plugin/config/target/site/jacoco/jacoco.xml,./plugin/control/target/site/jacoco/jacoco.xml,./plugin/datasource/target/site/jacoco/jacoco.xml,./plugin/encryption/target/site/jacoco/jacoco.xml,./plugin/environment/target/site/jacoco/jacoco.xml,./plugin/trace/target/site/jacoco/jacoco.xml,./prometheus/target/site/jacoco/jacoco.xml,./sys/target/site/jacoco/jacoco.xml
5053
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)