@@ -71,13 +71,22 @@ jobs:
7171 git config --global core.autocrlf false
7272 git config --global core.eol lf
7373
74- - uses : actions/checkout@v6
74+ - uses : actions/checkout@v7
7575
7676 - name : Get composer cache directory
7777 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
7878
79+ - name : Get COMPOSER_ROOT_VERSION from composer.json branch alias
80+ run : |
81+ ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
82+ if [ -z "$ROOT_VERSION" ]; then
83+ echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
84+ exit 1
85+ fi
86+ echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
87+
7988 - name : Cache composer dependencies
80- uses : actions/cache@v5
89+ uses : actions/cache@v6
8190 with :
8291 path : ${{ env.COMPOSER_CACHE }}
8392 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
@@ -134,13 +143,22 @@ jobs:
134143 git config --global core.autocrlf false
135144 git config --global core.eol lf
136145
137- - uses : actions/checkout@v6
146+ - uses : actions/checkout@v7
138147
139148 - name : Get composer cache directory
140149 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$env:GITHUB_ENV"
141150
151+ - name : Get COMPOSER_ROOT_VERSION from composer.json branch alias
152+ run : |
153+ ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
154+ if [ -z "$ROOT_VERSION" ]; then
155+ echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
156+ exit 1
157+ fi
158+ echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
159+
142160 - name : Cache composer dependencies
143- uses : actions/cache@v5
161+ uses : actions/cache@v6
144162 with :
145163 path : ${{ env.COMPOSER_CACHE }}
146164 key : ${{ runner.os }}-composer-${{ hashFiles('**\composer.json') }}
@@ -172,13 +190,22 @@ jobs:
172190 - name : Setup problem matchers for PHP
173191 run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
174192
175- - uses : actions/checkout@v6
193+ - uses : actions/checkout@v7
176194
177195 - name : Get composer cache directory
178196 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
179197
198+ - name : Get COMPOSER_ROOT_VERSION from composer.json branch alias
199+ run : |
200+ ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
201+ if [ -z "$ROOT_VERSION" ]; then
202+ echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
203+ exit 1
204+ fi
205+ echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
206+
180207 - name : Cache composer dependencies
181- uses : actions/cache@v5
208+ uses : actions/cache@v6
182209 with :
183210 path : ${{ env.COMPOSER_CACHE }}
184211 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
@@ -226,13 +253,22 @@ jobs:
226253 - name : Setup problem matchers for PHP
227254 run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
228255
229- - uses : actions/checkout@v6
256+ - uses : actions/checkout@v7
230257
231258 - name : Get composer cache directory
232259 run : echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
233260
261+ - name : Get COMPOSER_ROOT_VERSION from composer.json branch alias
262+ run : |
263+ ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
264+ if [ -z "$ROOT_VERSION" ]; then
265+ echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
266+ exit 1
267+ fi
268+ echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
269+
234270 - name : Cache composer dependencies
235- uses : actions/cache@v5
271+ uses : actions/cache@v6
236272 with :
237273 path : ${{ env.COMPOSER_CACHE }}
238274 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
@@ -255,15 +291,15 @@ jobs:
255291 runs-on : [ubuntu-latest]
256292 needs : [unit-tests-linux]
257293 steps :
258- - uses : actions/checkout@v6
294+ - uses : actions/checkout@v7
259295
260296 - uses : actions/download-artifact@v8
261297 with :
262298 name : coverage-data
263299 path : ${{ github.workspace }}/build
264300
265301 - name : Codecov
266- uses : codecov/codecov-action@v6
302+ uses : codecov/codecov-action@v7
267303 with :
268304 token : ${{ secrets.CODECOV_TOKEN }}
269305 fail_ci_if_error : true
0 commit comments