Skip to content

Commit 2ad2626

Browse files
Merge pull request #108 from rakutentech/feature/codecov
Upload coverage to codecov
2 parents aa8e1ca + 4509035 commit 2ad2626

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/phptest.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
php-versions: [7.4, 8.0.6, 8.1]
13+
php-versions: [7.4, 8.0.6, 8.1, 8.2]
1414

1515
steps:
1616
- name: Checkout
@@ -30,10 +30,14 @@ jobs:
3030

3131
- name: PHPUNIT Tests
3232
run: |
33-
./vendor/bin/phpunit
33+
./vendor/bin/phpunit --coverage-clover=coverage.xml
34+
3435
- name: PHPLint
3536
run: |
3637
./vendor/bin/phpcs --standard=phpcs.xml --extensions=php --ignore=tests/migrations config/ src/
3738
38-
39-
39+
- name: Upload to codecov
40+
uses: codecov/codecov-action@v3
41+
with:
42+
name: PHP ${{ matrix.php-versions }}
43+
files: coverage.xml

0 commit comments

Comments
 (0)