Skip to content

Commit f716312

Browse files
author
nix
committed
QA: added code coverage upload to codecov.io
1 parent a4fabc5 commit f716312

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/quality-assurance.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818

1919
jobs:
2020
unit-tests:
21-
name: PHPUnit tests (PHP ${{ matrix.php }})
21+
name: PHPUnit test + cov. (PHP ${{ matrix.php }})
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
@@ -31,7 +31,11 @@ jobs:
3131
with:
3232
php-version: ${{ matrix.php }}
3333
- run: ./composer.phar install -n --no-progress -o
34-
- run: ./composer.phar test
34+
- run: ./composer.phar test+coverage
35+
- name: Upload coverage reports to Codecov
36+
uses: codecov/codecov-action@v5
37+
with:
38+
token: ${{ secrets.CODECOV_TOKEN }}
3539
static-analysis:
3640
name: PHPStan checks (PHP ${{ matrix.php }})
3741
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)