@@ -3,8 +3,12 @@ name: CI
3
3
on :
4
4
push :
5
5
branches : [ '**' ]
6
+ paths-ignore :
7
+ - ' **.md'
6
8
pull_request :
7
- branches : [ master, development, release-* ]
9
+ branches : [ master, release-* ]
10
+ paths-ignore :
11
+ - ' **.md'
8
12
9
13
jobs :
10
14
basic-tests :
@@ -45,10 +49,11 @@ jobs:
45
49
- name : Setup PHP, with composer and extensions
46
50
uses : shivammathur/setup-php@v2 # https://github.com/shivammathur/setup-php
47
51
with :
52
+ coverage : pcov
53
+ extensions : intl, mbstring, xml
54
+ ini-values : error_reporting=E_ALL
48
55
php-version : ${{ matrix.php-versions }}
49
- extensions : ldap, mbstring, xml
50
56
tools : composer:v2
51
- coverage : pcov
52
57
53
58
- name : Setup problem matchers for PHP
54
59
run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
@@ -61,14 +66,14 @@ jobs:
61
66
git config --global core.autocrlf false
62
67
git config --global core.eol lf
63
68
64
- - uses : actions/checkout@v2
69
+ - uses : actions/checkout@v3
65
70
66
71
- name : Get composer cache directory
67
72
id : composer-cache
68
73
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
69
74
70
75
- name : Cache composer dependencies
71
- uses : actions/cache@v1
76
+ uses : actions/cache@v3
72
77
with :
73
78
path : ${{ steps.composer-cache.outputs.dir }}
74
79
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
95
100
96
101
- name : Save coverage data
97
102
if : ${{ matrix.php-versions == '7.4' && matrix.operating-system == 'ubuntu-latest' }}
98
- uses : actions/upload-artifact@v1
103
+ uses : actions/upload-artifact@v3
99
104
with :
100
105
name : build-data
101
106
path : ${{ github.workspace }}/build
@@ -108,21 +113,21 @@ jobs:
108
113
uses : shivammathur/setup-php@v2 # https://github.com/shivammathur/setup-php
109
114
with :
110
115
php-version : ' 7.4'
116
+ extensions : mbstring, xml
111
117
tools : composer:v2
112
- extensions : ldap, mbstring, xml
113
118
coverage : none
114
119
115
120
- name : Setup problem matchers for PHP
116
121
run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
117
122
118
- - uses : actions/checkout@v2
123
+ - uses : actions/checkout@v3
119
124
120
125
- name : Get composer cache directory
121
126
id : composer-cache
122
127
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
123
128
124
129
- name : Cache composer dependencies
125
- uses : actions/cache@v1
130
+ uses : actions/cache@v3
126
131
with :
127
132
path : ${{ steps.composer-cache.outputs.dir }}
128
133
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -132,13 +137,13 @@ jobs:
132
137
run : composer install --no-progress --prefer-dist --optimize-autoloader
133
138
134
139
- name : Security check for locked dependencies
135
- uses : symfonycorp/security-checker-action@v2
140
+ uses : symfonycorp/security-checker-action@v3
136
141
137
142
- name : Update Composer dependencies
138
143
run : composer update --no-progress --prefer-dist --optimize-autoloader
139
144
140
145
- name : Security check for updated dependencies
141
- uses : symfonycorp/security-checker-action@v2
146
+ uses : symfonycorp/security-checker-action@v3
142
147
143
148
sanity-check :
144
149
name : Sanity checks
@@ -149,21 +154,21 @@ jobs:
149
154
uses : shivammathur/setup-php@v2 # https://github.com/shivammathur/setup-php
150
155
with :
151
156
php-version : ' 7.4'
157
+ extensions : mbstring, xml
152
158
tools : composer:v2
153
- extensions : ldap, mbstring, xml
154
159
coverage : none
155
160
156
161
- name : Setup problem matchers for PHP
157
162
run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
158
163
159
- - uses : actions/checkout@v2
164
+ - uses : actions/checkout@v3
160
165
161
166
- name : Get composer cache directory
162
167
id : composer-cache
163
168
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
164
169
165
170
- name : Cache composer dependencies
166
- uses : actions/cache@v1
171
+ uses : actions/cache@v3
167
172
with :
168
173
path : ${{ steps.composer-cache.outputs.dir }}
169
174
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -185,23 +190,24 @@ jobs:
185
190
186
191
steps :
187
192
- name : Setup PHP, with composer and extensions
193
+ id : setup-php
188
194
uses : shivammathur/setup-php@v2 # https://github.com/shivammathur/setup-php
189
195
with :
190
196
php-version : ' 7.4'
191
197
tools : composer:v2
192
- extensions : ldap, mbstring, xml
198
+ extensions : mbstring, xml
193
199
194
200
- name : Setup problem matchers for PHP
195
201
run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
196
202
197
- - uses : actions/checkout@v2
203
+ - uses : actions/checkout@v3
198
204
199
205
- name : Get composer cache directory
200
206
id : composer-cache
201
207
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
202
208
203
209
- name : Cache composer dependencies
204
- uses : actions/cache@v1
210
+ uses : actions/cache@v3
205
211
with :
206
212
path : ${{ steps.composer-cache.outputs.dir }}
207
213
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -210,22 +216,22 @@ jobs:
210
216
- name : Install Composer dependencies
211
217
run : composer install --no-progress --prefer-dist --optimize-autoloader
212
218
213
- - uses : actions/download-artifact@v1
219
+ - uses : actions/download-artifact@v3
214
220
with :
215
221
name : build-data
216
222
path : ${{ github.workspace }}/build
217
223
218
224
- name : Codecov
219
- uses : codecov/codecov-action@v1
225
+ uses : codecov/codecov-action@v3
220
226
221
227
- name : PHP Code Sniffer
222
228
continue-on-error : true
223
229
run : php vendor/bin/phpcs
224
230
225
231
- name : Psalm
226
232
continue-on-error : true
227
- run : php vendor/bin/psalm --show-info=true
233
+ run : php vendor/bin/psalm --show-info=true --shepherd --php-version=${{ steps.setup-php.outputs.php-version }}
228
234
229
235
- name : Psalter
230
236
continue-on-error : true
231
- run : php vendor/bin/psalter --issues=UnnecessaryVarAnnotation --dry-run
237
+ run : php vendor/bin/psalter --issues=UnnecessaryVarAnnotation --dry-run --php-version=${{ steps.setup-php.outputs.php-version }}
0 commit comments