1
- name : CI
1
+ name : Tests
2
2
3
3
on :
4
4
push :
8
8
- cron : ' 0 8 * * *'
9
9
10
10
jobs :
11
- php-cs-fixer :
12
- runs-on : ubuntu-latest
13
- name : Coding Standards
14
- steps :
15
- - name : Checkout
16
- uses : actions/checkout@v3
17
-
18
- - name : Setup PHP
19
- uses : shivammathur/setup-php@v2
20
- with :
21
- php-version : ' 8.1'
22
- coverage : none
23
- tools : php-cs-fixer, cs2pr
24
-
25
- - name : PHP Coding Standards Fixer
26
- run : php-cs-fixer fix --dry-run --format checkstyle | cs2pr
27
-
28
- phpstan :
29
- runs-on : ubuntu-latest
30
- name : Static Analysis
31
- steps :
32
- - name : Checkout
33
- uses : actions/checkout@v3
34
-
35
- - name : Setup PHP
36
- uses : shivammathur/setup-php@v2
37
- with :
38
- php-version : ' 8.1'
39
- coverage : none
40
- tools : phpstan
41
-
42
- - name : Install dependencies
43
- uses : ramsey/composer-install@v2
44
- with :
45
- composer-options : ' --prefer-dist'
46
-
47
- - name : Install PHPUnit dependencies
48
- run : vendor/bin/simple-phpunit install
49
-
50
- - name : PHPStan
51
- run : phpstan analyse --no-progress
52
-
53
11
phpunit :
54
12
runs-on : ubuntu-latest
55
13
strategy :
@@ -152,7 +110,7 @@ jobs:
152
110
name : PHP ${{ matrix.php }} & Symfony ${{ matrix.symfony }}${{ matrix.dependencies == 'lowest' && ' (lowest)' || '' }} Test
153
111
steps :
154
112
- name : Checkout
155
- uses : actions/checkout@v3
113
+ uses : actions/checkout@v4
156
114
157
115
- name : Setup PHP
158
116
uses : shivammathur/setup-php@v2
@@ -161,27 +119,28 @@ jobs:
161
119
ini-values : zend.exception_ignore_args=false
162
120
tools : flex
163
121
164
- - name : Install dependencies
122
+ - name : Install Dependencies
165
123
uses : ramsey/composer-install@v2
166
124
with :
167
125
composer-options : ' --prefer-dist'
168
126
dependency-versions : ${{ matrix.dependencies }}
169
127
170
- - name : Install PHPUnit dependencies
128
+ - name : Install PHPUnit Dependencies
171
129
run : vendor/bin/simple-phpunit install
172
130
173
- - name : Run tests with Doctrine Annotations
131
+ - name : Run PHPUnit with Doctrine Annotations
174
132
run : vendor/bin/simple-phpunit -v --coverage-text --coverage-clover=coverage-annotations.xml
175
133
176
134
- name : Remove Doctrine Annotations
177
135
run : composer remove --dev doctrine/annotations
178
136
179
- - name : Run tests without Doctrine Annotations
137
+ - name : Run PHPUnit without Doctrine Annotations
180
138
run : vendor/bin/simple-phpunit -v --coverage-text --coverage-clover=coverage-no-annotations.xml
181
139
182
- - name : Upload coverage to Codecov
140
+ - name : Upload Coverage to Codecov
183
141
if : ${{ success() }}
184
- uses : codecov/codecov-action@v3
142
+ uses : codecov/codecov-action@v4
185
143
with :
186
144
files : coverage-annotations.xml,coverage-no-annotations.xml
187
145
flags : ${{ matrix.php }}
146
+ token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments