@@ -3,8 +3,12 @@ name: CI
33on :
44 push :
55 branches : [ '**' ]
6+ paths-ignore :
7+ - ' **.md'
68 pull_request :
7- branches : [ master, development, release-* ]
9+ branches : [ master, release-* ]
10+ paths-ignore :
11+ - ' **.md'
812
913jobs :
1014 basic-tests :
@@ -45,10 +49,11 @@ jobs:
4549 - name : Setup PHP, with composer and extensions
4650 uses : shivammathur/setup-php@v2 # https://github.com/shivammathur/setup-php
4751 with :
52+ coverage : pcov
53+ extensions : intl, mbstring, xml
54+ ini-values : error_reporting=E_ALL
4855 php-version : ${{ matrix.php-versions }}
49- extensions : ldap, mbstring, xml
5056 tools : composer:v2
51- coverage : pcov
5257
5358 - name : Setup problem matchers for PHP
5459 run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
@@ -61,14 +66,14 @@ jobs:
6166 git config --global core.autocrlf false
6267 git config --global core.eol lf
6368
64- - uses : actions/checkout@v2
69+ - uses : actions/checkout@v3
6570
6671 - name : Get composer cache directory
6772 id : composer-cache
6873 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
6974
7075 - name : Cache composer dependencies
71- uses : actions/cache@v1
76+ uses : actions/cache@v3
7277 with :
7378 path : ${{ steps.composer-cache.outputs.dir }}
7479 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
95100
96101 - name : Save coverage data
97102 if : ${{ matrix.php-versions == '7.4' && matrix.operating-system == 'ubuntu-latest' }}
98- uses : actions/upload-artifact@v1
103+ uses : actions/upload-artifact@v3
99104 with :
100105 name : build-data
101106 path : ${{ github.workspace }}/build
@@ -108,21 +113,21 @@ jobs:
108113 uses : shivammathur/setup-php@v2 # https://github.com/shivammathur/setup-php
109114 with :
110115 php-version : ' 7.4'
116+ extensions : mbstring, xml
111117 tools : composer:v2
112- extensions : ldap, mbstring, xml
113118 coverage : none
114119
115120 - name : Setup problem matchers for PHP
116121 run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
117122
118- - uses : actions/checkout@v2
123+ - uses : actions/checkout@v3
119124
120125 - name : Get composer cache directory
121126 id : composer-cache
122127 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
123128
124129 - name : Cache composer dependencies
125- uses : actions/cache@v1
130+ uses : actions/cache@v3
126131 with :
127132 path : ${{ steps.composer-cache.outputs.dir }}
128133 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -132,13 +137,13 @@ jobs:
132137 run : composer install --no-progress --prefer-dist --optimize-autoloader
133138
134139 - name : Security check for locked dependencies
135- uses : symfonycorp/security-checker-action@v2
140+ uses : symfonycorp/security-checker-action@v3
136141
137142 - name : Update Composer dependencies
138143 run : composer update --no-progress --prefer-dist --optimize-autoloader
139144
140145 - name : Security check for updated dependencies
141- uses : symfonycorp/security-checker-action@v2
146+ uses : symfonycorp/security-checker-action@v3
142147
143148 sanity-check :
144149 name : Sanity checks
@@ -149,21 +154,21 @@ jobs:
149154 uses : shivammathur/setup-php@v2 # https://github.com/shivammathur/setup-php
150155 with :
151156 php-version : ' 7.4'
157+ extensions : mbstring, xml
152158 tools : composer:v2
153- extensions : ldap, mbstring, xml
154159 coverage : none
155160
156161 - name : Setup problem matchers for PHP
157162 run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
158163
159- - uses : actions/checkout@v2
164+ - uses : actions/checkout@v3
160165
161166 - name : Get composer cache directory
162167 id : composer-cache
163168 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
164169
165170 - name : Cache composer dependencies
166- uses : actions/cache@v1
171+ uses : actions/cache@v3
167172 with :
168173 path : ${{ steps.composer-cache.outputs.dir }}
169174 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -185,23 +190,24 @@ jobs:
185190
186191 steps :
187192 - name : Setup PHP, with composer and extensions
193+ id : setup-php
188194 uses : shivammathur/setup-php@v2 # https://github.com/shivammathur/setup-php
189195 with :
190196 php-version : ' 7.4'
191197 tools : composer:v2
192- extensions : ldap, mbstring, xml
198+ extensions : mbstring, xml
193199
194200 - name : Setup problem matchers for PHP
195201 run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
196202
197- - uses : actions/checkout@v2
203+ - uses : actions/checkout@v3
198204
199205 - name : Get composer cache directory
200206 id : composer-cache
201207 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
202208
203209 - name : Cache composer dependencies
204- uses : actions/cache@v1
210+ uses : actions/cache@v3
205211 with :
206212 path : ${{ steps.composer-cache.outputs.dir }}
207213 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -210,22 +216,22 @@ jobs:
210216 - name : Install Composer dependencies
211217 run : composer install --no-progress --prefer-dist --optimize-autoloader
212218
213- - uses : actions/download-artifact@v1
219+ - uses : actions/download-artifact@v3
214220 with :
215221 name : build-data
216222 path : ${{ github.workspace }}/build
217223
218224 - name : Codecov
219- uses : codecov/codecov-action@v1
225+ uses : codecov/codecov-action@v3
220226
221227 - name : PHP Code Sniffer
222228 continue-on-error : true
223229 run : php vendor/bin/phpcs
224230
225231 - name : Psalm
226232 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 }}
228234
229235 - name : Psalter
230236 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