@@ -8,7 +8,7 @@ on: # yamllint disable-line rule:truthy
88 paths-ignore :
99 - ' **.md'
1010 pull_request :
11- branches : [main, release-*]
11+ branches : [master, main, release-*]
1212 paths-ignore :
1313 - ' **.md'
1414 workflow_dispatch :
1919 strategy :
2020 fail-fast : false
2121 matrix :
22- php-version : ['8.1 ', '8.2 ', '8.3', '8.4 ']
22+ php-version : ['8.3 ', '8.4 ', '8.5 ']
2323
24- uses : simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.10.0
24+ uses : simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.11.1
2525 with :
2626 php-version : ${{ matrix.php-version }}
2727
3030 strategy :
3131 fail-fast : false
3232
33- uses : simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_linter.yml@v1.10.0
33+ uses : simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_linter.yml@v1.11.1
3434 with :
3535 enable_eslinter : false
3636 enable_jsonlinter : true
@@ -41,11 +41,12 @@ jobs:
4141 name : " Unit tests, PHP ${{ matrix.php-versions }}, ${{ matrix.operating-system }}"
4242 runs-on : ${{ matrix.operating-system }}
4343 needs : [phplinter, linter]
44+
4445 strategy :
4546 fail-fast : false
4647 matrix :
4748 operating-system : [ubuntu-latest]
48- php-versions : ['8.1 ', '8.2 ', '8.3', '8.4 ']
49+ php-versions : ['8.3 ', '8.4 ', '8.5 ']
4950
5051 steps :
5152 - name : Setup test MySQL database
@@ -103,32 +104,32 @@ jobs:
103104 git config --global core.autocrlf false
104105 git config --global core.eol lf
105106
106- - uses : actions/checkout@v5
107+ - uses : actions/checkout@v6
107108
108109 - name : Get composer cache directory
109110 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
110111
111112 - name : Cache composer dependencies
112- uses : actions/cache@v4
113+ uses : actions/cache@v5
113114 with :
114- path : $COMPOSER_CACHE
115+ path : ${{ env. COMPOSER_CACHE }}
115116 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
116117 restore-keys : ${{ runner.os }}-composer-
117118
118119 - name : Install Composer dependencies
119120 run : composer install --no-progress --prefer-dist --optimize-autoloader
120121
121122 - name : Run unit tests with coverage
122- if : ${{ matrix.php-versions == '8.4 ' }}
123+ if : ${{ matrix.php-versions == '8.5 ' }}
123124 run : vendor/bin/phpunit --exclude-group skipOnGithub
124125
125126 - name : Run unit tests (no coverage)
126- if : ${{ matrix.php-versions != '8.4 ' }}
127+ if : ${{ matrix.php-versions != '8.5 ' }}
127128 run : vendor/bin/phpunit --exclude-group skipOnGithub --no-coverage
128129
129130 - name : Save coverage data
130- if : ${{ matrix.php-versions == '8.4 ' }}
131- uses : actions/upload-artifact@v4
131+ if : ${{ matrix.php-versions == '8.5 ' }}
132+ uses : actions/upload-artifact@v7
132133 with :
133134 name : coverage-data
134135 path : ${{ github.workspace }}/build
@@ -144,22 +145,22 @@ jobs:
144145 uses : shivammathur/setup-php@v2
145146 with :
146147 # Should be the higest supported version, so we can use the newest tools
147- php-version : ' 8.4 '
148- tools : composer, composer-require-checker, composer-unused
148+ php-version : ' 8.5 '
149+ tools : composer, composer-require-checker, composer-unused, phpcs, psalm
149150 extensions : ctype, date, dom, filter, hash, intl, mbstring, mysql, opcache, openssl, pcre, spl, xml
150151
151152 - name : Setup problem matchers for PHP
152153 run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
153154
154- - uses : actions/checkout@v5
155+ - uses : actions/checkout@v6
155156
156157 - name : Get composer cache directory
157158 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
158159
159160 - name : Cache composer dependencies
160- uses : actions/cache@v4
161+ uses : actions/cache@v5
161162 with :
162- path : $COMPOSER_CACHE
163+ path : ${{ env. COMPOSER_CACHE }}
163164 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
164165 restore-keys : ${{ runner.os }}-composer-
165166
@@ -170,7 +171,7 @@ jobs:
170171 run : composer install --no-progress --prefer-dist --optimize-autoloader
171172
172173 - name : Check code for hard dependencies missing in composer.json
173- run : composer-require-checker check --config-file tools/composer-require-checker.json composer.json
174+ run : composer-require-checker check --config-file= tools/composer-require-checker.json composer.json
174175
175176 - name : Check code for unused dependencies in composer.json
176177 run : |
@@ -190,29 +191,30 @@ jobs:
190191 security :
191192 name : Security checks
192193 runs-on : [ubuntu-latest]
194+
193195 steps :
194196 - name : Setup PHP, with composer and extensions
195197 # https://github.com/shivammathur/setup-php
196198 uses : shivammathur/setup-php@v2
197199 with :
198200 # Should be the lowest supported version
199- php-version : ' 8.1 '
201+ php-version : ' 8.3 '
200202 extensions : ctype, date, dom, filter, hash, intl, mbstring, openssl, pcre, spl, xml
201203 tools : composer
202204 coverage : none
203205
204206 - name : Setup problem matchers for PHP
205207 run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
206208
207- - uses : actions/checkout@v5
209+ - uses : actions/checkout@v6
208210
209211 - name : Get composer cache directory
210212 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
211213
212214 - name : Cache composer dependencies
213- uses : actions/cache@v4
215+ uses : actions/cache@v5
214216 with :
215- path : $COMPOSER_CACHE
217+ path : ${{ env. COMPOSER_CACHE }}
216218 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
217219 restore-keys : ${{ runner.os }}-composer-
218220
@@ -238,3 +240,4 @@ jobs:
238240 - uses : geekyeggo/delete-artifact@v5
239241 with :
240242 name : coverage-data
243+
0 commit comments