From 61005e400d113ad6664fd2bedb882c3eafad44ce Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Mon, 30 Sep 2024 15:35:40 +0800 Subject: [PATCH] improve codecov --- .github/workflows/ci.yml | 6 ++++-- codecov.yml | 20 -------------------- 2 files changed, 4 insertions(+), 22 deletions(-) delete mode 100644 codecov.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73ab7544d9..a70c885152 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 056eb010a0..0000000000 --- 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