Skip to content

Commit d8e34db

Browse files
committed
ci: update tests workflow
1 parent 7b05bfa commit d8e34db

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/test-runner.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Test runner
1+
name: Tests
22

33
on:
4-
# Run testing on all push and pull requests for the master branch that have committed changes in PHP files
4+
# Run testing on all push and pull requests for the main branch that have committed changes in PHP files
55
push:
6-
branches: [ "master" ]
6+
branches: [ "main" ]
77
paths:
88
- '**.php'
99
pull_request:
10-
branches: [ "master" ]
10+
branches: [ "main" ]
1111
paths:
1212
- '**.php'
1313
# Make it possible to run the workflow manually
@@ -27,7 +27,7 @@ jobs:
2727
fail-fast: true
2828
matrix:
2929
os: [ ubuntu-latest ]
30-
php: [ 8.1, 8.2 ]
30+
php: [ 8.3 ]
3131
dependency-version: [ prefer-lowest, prefer-stable ]
3232

3333
name: ${{ matrix.os }} / PHP ${{ matrix.php }} / ${{ matrix.dependency-version }}
@@ -64,12 +64,13 @@ jobs:
6464
run: composer update --prefer-dist --no-progress --${{ matrix.dependency-version }}
6565

6666
- name: Run test suite
67-
run: ./vendor/bin/pest --coverage-clover ./coverage.xml
67+
run: composer test -- --coverage-clover ./coverage.xml
6868

6969
- name: Upload coverage reports to Codecov
7070
# Make sure the Codecov action is only executed once
71-
if: matrix.os == 'ubuntu-latest' && matrix.php == '8.1' && matrix.dependency-version == 'prefer-stable'
72-
uses: codecov/codecov-action@v3
71+
if: matrix.os == 'ubuntu-latest' && matrix.php == '8.3' && matrix.dependency-version == 'prefer-stable'
72+
uses: codecov/codecov-action@v5
7373
with:
74+
token: ${{ secrets.CODECOV_TOKEN }}
7475
files: ./coverage.xml
7576
verbose: true

0 commit comments

Comments
 (0)