Skip to content

Commit 104fd67

Browse files
committed
ci: update PHP test workflow to use PHPUnit and remove deprecated tests.yml
1 parent 6fbdfed commit 104fd67

2 files changed

Lines changed: 15 additions & 58 deletions

File tree

.github/workflows/php-tests.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
php-version: ['8.0', '8.1', '8.2', '8.3', '8.4']
16-
16+
1717
steps:
1818
- uses: actions/checkout@v4
1919

@@ -25,5 +25,17 @@ jobs:
2525
- name: Install dependencies
2626
run: composer install --no-interaction
2727

28-
- name: Run tests
29-
run: composer test
28+
- name: Test with PHPUnit
29+
run: |
30+
./vendor/bin/phpunit --coverage-clover=coverage.xml --log-junit=junit.xml
31+
32+
- name: Upload coverage to Codecov
33+
uses: codecov/codecov-action@v5
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}
36+
37+
- name: Upload test results to Codecov
38+
if: ${{ !cancelled() }}
39+
uses: codecov/test-results-action@v1
40+
with:
41+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/tests.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)