Skip to content

Commit 77f1ec7

Browse files
committed
Refactor CI workflow to remove caching steps and streamline dependency installation
1 parent 189ccd0 commit 77f1ec7

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,10 @@ jobs:
3333
extensions: dom, mbstring, zip, libxml, json, tokenizer, fileinfo
3434
coverage: none
3535

36-
- name: Get Composer Cache Directory
37-
id: composer-cache
38-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
39-
40-
- name: Cache Composer Dependencies
41-
uses: actions/cache@v4
42-
with:
43-
path: ${{ steps.composer-cache.outputs.dir }}
44-
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
45-
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-
46-
4736
- name: Install Dependencies
48-
run: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
37+
uses: ramsey/composer-install@v3
38+
with:
39+
dependency-versions: ${{ matrix.php == '8.1' && 'lowest' || 'highest' }}
4940

5041
- name: Check Code Style (Pint)
5142
run: ./vendor/bin/pint --test

0 commit comments

Comments
 (0)