Skip to content

Commit 002333a

Browse files
authored
Merge pull request #6 from LordSimal/fix-ci
try to fix CI
2 parents 7b0159c + 4db4cbf commit 002333a

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
php-version: ['8.1', '8.3']
16+
dependencies: ['highest']
17+
include:
18+
- php-version: '8.1'
19+
dependencies: 'lowest'
20+
- php-version: '8.3'
21+
dependencies: 'highest'
1622

1723
steps:
18-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
1925

2026
- name: Setup PHP
2127
uses: shivammathur/setup-php@v2
@@ -26,12 +32,10 @@ jobs:
2632
coverage: pcov
2733

2834
- name: Composer install
29-
run: |
30-
if [[ ${{ matrix.prefer-lowest == 'prefer-lowest' }} ]]; then
31-
composer update --prefer-lowest --prefer-stable
32-
else
33-
composer update
34-
fi
35+
uses: ramsey/composer-install@v2
36+
with:
37+
dependency-versions: ${{ matrix.dependencies }}
38+
composer-options: ${{ matrix.composer-options }}
3539

3640
- name: Run PHPUnit
3741
run: |
@@ -50,21 +54,21 @@ jobs:
5054
runs-on: ubuntu-22.04
5155

5256
steps:
53-
- uses: actions/checkout@v3
57+
- uses: actions/checkout@v4
5458

5559
- name: Setup PHP
5660
uses: shivammathur/setup-php@v2
5761
with:
5862
php-version: '8.1'
5963
extensions: mbstring, json, fileinfo
6064
coverage: none
61-
tools: pecl
65+
tools: pecl, cs2pr
6266

6367
- name: Composer install
64-
run: composer update --prefer-stable
68+
run: composer install
6569

6670
- name: Run phpcs
67-
run: vendor/bin/phpcs --version && bin/phpcs --report=checkstyle
71+
run: vendor/bin/phpcs --version && vendor/bin/phpcs --report=checkstyle | cs2pr
6872

6973
- name: Run phpstan
7074
run: vendor/bin/phpstan -V && vendor/bin/phpstan analyze --error-format=github

0 commit comments

Comments
 (0)