Skip to content

Commit 9c56203

Browse files
committed
Fixed composer cache dir + removed special cases for PHP 8.0
1 parent a2a3ded commit 9c56203

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,25 @@ jobs:
2121
uses: shivammathur/setup-php@v2
2222
with:
2323
php-version: ${{ matrix.php-version }}
24-
extensions: yaml
24+
extensions: yaml, zip, curl
2525
env:
2626
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727

2828
- name: Get composer cache directory
2929
id: composercache
30-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
30+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
3131

3232
- name: Cache dependencies
3333
uses: actions/cache@v4
3434
with:
3535
path: ${{ steps.composercache.outputs.dir }}
3636
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }}
3737
restore-keys: ${{ runner.os }}-php-${{ matrix.php-version }}-
38-
38+
3939
- name: Install dependencies
40-
if: ${{ matrix.php-version != '8.0' }}
4140
run: |
4241
composer install --prefer-dist
4342
44-
- name: ignore ignore-platform-reqs if it is using php 8
45-
if: ${{ matrix.php-version == '8.0' }}
46-
run: |
47-
composer install --prefer-dist --ignore-platform-reqs
48-
4943
- name: PHP Coding Standards
5044
run: |
5145
composer run-script phpcs

0 commit comments

Comments
 (0)