Skip to content

Commit be816cd

Browse files
committed
Various build script improvements
1 parent c6717ac commit be816cd

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/tests.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717

1818
tests:
1919
name: Tests (PHP ${{ matrix.php }})
20-
runs-on: Ubuntu-20.04
20+
runs-on: ubuntu-latest
2121

2222
strategy:
2323
matrix:
24-
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
24+
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
2525
fail-fast: false
2626

2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v2
29+
uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 2
3232

@@ -38,16 +38,26 @@ jobs:
3838
tools: composer
3939

4040
- name: Install dependencies
41-
uses: "ramsey/composer-install@v1"
41+
uses: "ramsey/composer-install@v3"
4242
with:
4343
dependency-versions: "highest"
4444

4545
- name: Run tests
4646
run: |
47-
vendor/bin/phpunit -v --coverage-clover=coverage.clover
47+
vendor/bin/phpunit --log-junit junit.xml --coverage-clover=coverage.clover
4848
49-
- name: Upload Coverage to CodeCov
50-
uses: codecov/codecov-action@v2
49+
- name: Upload coverage to Codecov
50+
uses: codecov/codecov-action@v4
51+
if: ${{ !cancelled() }}
52+
with:
53+
token: ${{ secrets.CODECOV_TOKEN }}
54+
files: coverage.xml
55+
56+
- name: Upload test results to Codecov
57+
if: ${{ !cancelled() }}
58+
uses: codecov/test-results-action@v1
59+
with:
60+
token: ${{ secrets.CODECOV_TOKEN }}
5161

5262
- name: Upload Coverage to Scrutinizer CI (PHP < 8.0)
5363
if: "${{ matrix.php < '8.0' }}"

0 commit comments

Comments
 (0)