@@ -17,16 +17,16 @@ jobs:
17
17
18
18
tests :
19
19
name : Tests (PHP ${{ matrix.php }})
20
- runs-on : Ubuntu-20.04
20
+ runs-on : ubuntu-latest
21
21
22
22
strategy :
23
23
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' ]
25
25
fail-fast : false
26
26
27
27
steps :
28
28
- name : Checkout
29
- uses : actions/checkout@v2
29
+ uses : actions/checkout@v4
30
30
with :
31
31
fetch-depth : 2
32
32
@@ -38,16 +38,26 @@ jobs:
38
38
tools : composer
39
39
40
40
- name : Install dependencies
41
- uses : " ramsey/composer-install@v1 "
41
+ uses : " ramsey/composer-install@v3 "
42
42
with :
43
43
dependency-versions : " highest"
44
44
45
45
- name : Run tests
46
46
run : |
47
- vendor/bin/phpunit -v --coverage-clover=coverage.clover
47
+ vendor/bin/phpunit --log-junit junit.xml --coverage-clover=coverage.clover
48
48
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 }}
51
61
52
62
- name : Upload Coverage to Scrutinizer CI (PHP < 8.0)
53
63
if : " ${{ matrix.php < '8.0' }}"
0 commit comments