Skip to content

Commit 445d625

Browse files
committed
Refactor CI workflow to streamline dependency installation for PHP 8.1
1 parent 1286bba commit 445d625

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,23 @@ jobs:
3333
extensions: dom, mbstring, zip, libxml, json, tokenizer, fileinfo
3434
coverage: none
3535

36+
- name: Install Dependencies (baseline)
37+
if: matrix.php == '8.1'
38+
run: composer update --prefer-stable --no-interaction --no-progress --ansi
39+
40+
- name: Downgrade runtime deps to lowest supported
41+
if: matrix.php == '8.1'
42+
run: composer update phpstan/phpdoc-parser nikic/php-parser --prefer-lowest --prefer-stable --no-interaction --no-progress --ansi
43+
3644
- name: Install Dependencies
45+
if: matrix.php != '8.1'
3746
uses: ramsey/composer-install@v3
3847
with:
39-
dependency-versions: ${{ matrix.php == '8.1' && 'lowest' || 'highest' }}
40-
composer-options: ${{ matrix.php == '8.1' && 'phpstan/phpdoc-parser nikic/php-parser' || '' }}
48+
dependency-versions: highest
49+
50+
- name: Check Code Style (Pint)
51+
run: ./vendor/bin/pint --test
52+
if: matrix.os == 'ubuntu-latest' && matrix.php == '8.3'
4153

4254
- name: Run Static Analysis (PHPStan)
4355
run: ./vendor/bin/phpstan analyse --no-progress

0 commit comments

Comments
 (0)