Skip to content

Commit

Permalink
update codecov upload
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Jun 28, 2024
1 parent c3d66b6 commit 4590e93
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Original file line number Diff line number Diff line change
Expand Up @@ -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
- name: Upload code coverage report
uses: codecov/codecov-action@v4
with:
flags: golang # optional
token: ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -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
- name: Upload code coverage report
uses: codecov/codecov-action@v4
with:
flags: java # optional
token: ${{ secrets.CODECOV_TOKEN }}
12 changes: 7 additions & 5 deletions .github/workflows/testPHP.yml → .github/workflows/test_php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Original file line number Diff line number Diff line change
Expand Up @@ -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
- name: Upload code coverage report
uses: codecov/codecov-action@v4
with:
flags: python # optional
token: ${{ secrets.CODECOV_TOKEN }}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 4590e93

Please sign in to comment.