diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37e2f05c0..f6d05dadb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,5 +23,7 @@ jobs: run: cd aliyun-net-sdk-core.Tests/ && dotnet add package AltCover --version 8.6.14 && cd ../ && dotnet restore && dotnet build - name: Test run: dotnet test aliyun-net-sdk-core.Tests/ /p:AltCover=true - - name: Codecov - run: bash <(curl -s https://codecov.io/bash) -c -F unittest \ No newline at end of file + - name: Upload Coverage Report + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} # required diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index 056eb010a..000000000 --- a/codecov.yml +++ /dev/null @@ -1,20 +0,0 @@ -codecov: - notify: - after_n_builds: 2 - -coverage: - status: - project: - default: off - unittest: - flags: unittest - target: 85% -flags: - unittest: - # only test unittests - paths: - - aliyun-net-sdk-core/ - -ignore: - - "aliyun-net-sdk-core.Tests/" # ignore aliyun-net-sdk-core.Tests - - "aliyun-sdk-feature-test/" # ignore aliyun-sdk-feature-test