diff --git a/.github/workflows/testCSharp.yml b/.github/workflows/test_csharp.yml similarity index 80% rename from .github/workflows/testCSharp.yml rename to .github/workflows/test_csharp.yml index 101373d0..38e4fd1d 100644 --- a/.github/workflows/testCSharp.yml +++ b/.github/workflows/test_csharp.yml @@ -28,6 +28,9 @@ jobs: run: cd core/ && dotnet build --configuration Release --no-restore - name: Test run: dotnet test tests/ /p:AltCover=true - - name: CodeCov - run: bash <(curl -s https://codecov.io/bash) -cF csharp + - name: Upload code coverage report + uses: codecov/codecov-action@v4 + with: + flags: csharp # optional + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/testGo.yml b/.github/workflows/test_go.yml similarity index 81% rename from .github/workflows/testGo.yml rename to .github/workflows/test_go.yml index 1ba500db..0f991788 100644 --- a/.github/workflows/testGo.yml +++ b/.github/workflows/test_go.yml @@ -35,5 +35,8 @@ jobs: run: go mod tidy - name: Test run: go test -race -coverprofile=coverage.txt -covermode=atomic ./service/... - - name: CodeCov - run: bash <(curl -s https://codecov.io/bash) -cF golang \ No newline at end of file + - name: Upload code coverage report + uses: codecov/codecov-action@v4 + with: + flags: golang # optional + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/testJava.yml b/.github/workflows/test_java.yml similarity index 81% rename from .github/workflows/testJava.yml rename to .github/workflows/test_java.yml index c0922559..e2d8f6a8 100644 --- a/.github/workflows/testJava.yml +++ b/.github/workflows/test_java.yml @@ -31,5 +31,8 @@ jobs: java-version: ${{ matrix.java }} - name: Build with Maven run: mvn test -B - - name: CodeCov - run: bash <(curl -s https://codecov.io/bash) -cF java \ No newline at end of file + - name: Upload code coverage report + uses: codecov/codecov-action@v4 + with: + flags: java # optional + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/testPHP.yml b/.github/workflows/test_php.yml similarity index 88% rename from .github/workflows/testPHP.yml rename to .github/workflows/test_php.yml index 23675743..b9b3b90f 100644 --- a/.github/workflows/testPHP.yml +++ b/.github/workflows/test_php.yml @@ -35,19 +35,21 @@ jobs: ini-values: post_max_size=256M, max_execution_time=180 coverage: xdebug tools: php-cs-fixer, phpunit - + - name: Validate composer.json and composer.lock run: composer validate - name: Install dependencies run: composer install --prefer-dist --no-progress --no-suggest - + - name: Require phpunit run: composer require phpunit/phpunit --dev - name: Run test case run: composer test - - - name: Code coverage - run: bash <(curl -s https://codecov.io/bash) -cF php + - name: Upload code coverage report + uses: codecov/codecov-action@v4 + with: + flags: php # optional + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/testPython.yml b/.github/workflows/test_python.yml similarity index 78% rename from .github/workflows/testPython.yml rename to .github/workflows/test_python.yml index b8524344..8be7829a 100644 --- a/.github/workflows/testPython.yml +++ b/.github/workflows/test_python.yml @@ -28,5 +28,8 @@ jobs: - name: Test with unittest run: | coverage run --source="./alibabacloud_tea_util" -m pytest tests/test_* - - name: CodeCov - run: bash <(curl -s https://codecov.io/bash) -cF python \ No newline at end of file + - name: Upload code coverage report + uses: codecov/codecov-action@v4 + with: + flags: python # optional + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/swift.yml b/.github/workflows/test_swift.yml similarity index 100% rename from .github/workflows/swift.yml rename to .github/workflows/test_swift.yml diff --git a/.github/workflows/testTS.yml b/.github/workflows/test_typescript.yml similarity index 80% rename from .github/workflows/testTS.yml rename to .github/workflows/test_typescript.yml index ff5cbbe1..8510331f 100644 --- a/.github/workflows/testTS.yml +++ b/.github/workflows/test_typescript.yml @@ -30,5 +30,8 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm install - run: npm run test-cov - - name: CodeCov - run: bash <(curl -s https://codecov.io/bash) -cF ts + - name: Upload code coverage report + uses: codecov/codecov-action@v4 + with: + flags: ts # optional + token: ${{ secrets.CODECOV_TOKEN }}