diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3595075e0e..846010e10a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -21,7 +21,7 @@ jobs: java: [ 8, 11 ] name: Java ${{ matrix.Java }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup java uses: actions/setup-java@v2 with: @@ -29,5 +29,7 @@ jobs: java-version: ${{ matrix.java }} - name: Test with Maven run: mvn test -B -f ./aliyun-java-sdk-core/pom.xml - - name: Post test coverage - run: bash <(curl -s https://codecov.io/bash) -cF java + - name: Upload Coverage Report + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} # required