Skip to content

Commit d798859

Browse files
authored
chore(ci): update GH Actions php test (#3867)
- php versions should be strings - caching updated to current recommendation - fixed env var name
1 parent 08d74df commit d798859

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.github/workflows/tests.yaml

+7-15
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,30 @@ permissions:
1010
contents: read # to fetch code (actions/checkout)
1111

1212
jobs:
13-
1413
unit-tests:
15-
16-
runs-on: ${{ matrix.os }}
17-
1814
strategy:
1915
matrix:
20-
php: [8.3, 8.2, 8.1, 8.0, 7.4, 7.3]
16+
php: ['8.3', '8.2', '8.1', '8.0', '7.4', '7.3']
2117
os: [ubuntu-latest]
2218

19+
runs-on: ${{ matrix.os }}
20+
2321
steps:
24-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2523

26-
- name: Setup PHP
24+
- name: Setup PHP ${{ matrix.php }}
2725
uses: shivammathur/setup-php@v2
2826
with:
2927
php-version: ${{ matrix.php }}
3028
extensions: opcache, gd
3129
tools: composer:v2
3230
coverage: none
3331
env:
34-
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
36-
# - name: Update composer
37-
# run: composer update
38-
#
39-
# - name: Validate composer.json and composer.lock
40-
# run: composer validate
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4133

4234
- name: Get composer cache directory
4335
id: composer-cache
44-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
36+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
4537

4638
- name: Cache dependencies
4739
uses: actions/cache@v4

0 commit comments

Comments
 (0)