1
- name : ' CI '
1
+ name : CI
2
2
3
3
on :
4
4
pull_request :
5
5
push :
6
6
branches :
7
- - ' main'
7
+ - main
8
8
9
9
env :
10
10
COMPOSER_ROOT_VERSION : ' 1.99.99'
11
11
12
12
jobs :
13
13
lint :
14
- name : ' Lint'
15
- runs-on : ' ubuntu-latest'
14
+ name : Lint
15
+ runs-on : ubuntu-latest
16
16
steps :
17
- - uses : ' actions/checkout@v2 '
18
- - uses : ' shivammathur/setup-php@v2'
17
+ - uses : actions/checkout@v4
18
+ - uses : shivammathur/setup-php@v2
19
19
with :
20
20
php-version : ' 7.4'
21
- coverage : ' none'
22
- ini-values : ' memory_limit=-1'
23
- tools : ' composer:v2'
24
- - uses : ' ramsey/composer-install@v1 '
21
+ coverage : none
22
+ ini-values : memory_limit=-1
23
+ tools : composer:v2
24
+ - uses : ramsey/composer-install@v3
25
25
- name : ' Lint the PHP source code'
26
- run : ' ./vendor/bin/parallel-lint src test'
26
+ run : ./vendor/bin/parallel-lint src test
27
27
28
28
coding-standards :
29
- name : ' Coding Standards'
30
- runs-on : ' ubuntu-latest'
29
+ name : Coding Standards
30
+ runs-on : ubuntu-latest
31
31
steps :
32
- - uses : ' actions/checkout@v2 '
33
- - uses : ' shivammathur/setup-php@v2'
32
+ - uses : actions/checkout@v4
33
+ - uses : shivammathur/setup-php@v2
34
34
with :
35
35
php-version : ' 7.4'
36
- coverage : ' none'
37
- ini-values : ' memory_limit=-1'
38
- tools : ' composer:v2'
39
- - uses : ' ramsey/composer-install@v1 '
40
- - name : ' Check coding standards'
41
- run : ' ./vendor/bin/phpcs src --standard=psr2 -sp --colors'
36
+ coverage : none
37
+ ini-values : memory_limit=-1
38
+ tools : composer:v2
39
+ - uses : ramsey/composer-install@v3
40
+ - name : Check coding standards
41
+ run : ./vendor/bin/phpcs src --standard=psr2 -sp --colors
42
42
43
43
unit-tests :
44
- name : ' Unit Tests'
45
- runs-on : ' ubuntu-latest'
44
+ name : Unit Tests
45
+ runs-on : ubuntu-latest
46
46
continue-on-error : ${{ matrix.experimental }}
47
47
strategy :
48
48
fail-fast : false
@@ -55,30 +55,32 @@ jobs:
55
55
- ' 7.3'
56
56
- ' 7.4'
57
57
- ' 8.0'
58
+ - ' 8.1'
59
+ - ' 8.2'
60
+ - ' 8.4'
58
61
dependencies :
59
- - ' lowest'
60
- - ' highest'
62
+ - lowest
63
+ - highest
61
64
experimental :
62
65
- false
63
66
include :
64
- - php-version : ' 8.1'
65
- experimental : true
66
- composer-options : ' --ignore-platform-reqs'
67
+ - php-version : ' 8.3'
68
+ experimental : false
67
69
steps :
68
- - uses : ' actions/checkout@v2 '
69
- - uses : ' shivammathur/setup-php@v2'
70
+ - uses : actions/checkout@v4
71
+ - uses : shivammathur/setup-php@v2
70
72
with :
71
73
php-version : ' ${{ matrix.php-version }}'
72
- coverage : ' pcov'
73
- ini-values : ' memory_limit=-1'
74
- tools : ' composer:v2'
75
- - name : ' Prepare for tests'
76
- run : ' mkdir -p build/logs'
77
- - uses : ' ramsey/composer-install@v1 '
74
+ coverage : pcov
75
+ ini-values : memory_limit=-1
76
+ tools : composer:v2
77
+ - name : Prepare for tests
78
+ run : mkdir -p build/logs
79
+ - uses : ramsey/composer-install@v3
78
80
with :
79
81
dependency-versions : ' ${{ matrix.dependencies }}'
80
82
composer-options : ' ${{ matrix.composer-options }}'
81
- - name : ' Run unit tests'
82
- run : ' ./vendor/bin/phpunit --colors=always --coverage-clover build/logs/clover.xml'
83
- - name : ' Publish coverage report to Codecov'
84
- uses : ' codecov/codecov-action@v1 '
83
+ - name : Run unit tests
84
+ run : ./vendor/bin/phpunit --colors=always --coverage-clover build/logs/clover.xml
85
+ - name : Publish coverage report to Codecov
86
+ uses : codecov/codecov-action@v4
0 commit comments