Skip to content

Commit b8c1e32

Browse files
author
TimelessTron
committed
update ci
1 parent e3b55b8 commit b8c1e32

File tree

1 file changed

+10
-27
lines changed

1 file changed

+10
-27
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,6 @@ jobs:
2323
matrix:
2424
dependencies: ["lowest", "highest"]
2525
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
26-
include:
27-
- php: "8.1"
28-
composer-options: "--ignore-platform-reqs"
29-
experimental: true
30-
dependencies: "highest"
31-
- php: "8.2"
32-
composer-options: "--ignore-platform-reqs"
33-
experimental: true
34-
dependencies: "highest"
35-
- php: "8.3"
36-
composer-options: "--ignore-platform-reqs"
37-
experimental: true
38-
dependencies: "highest"
39-
- php: "8.4"
40-
composer-options: "--ignore-platform-reqs"
41-
experimental: true
42-
dependencies: "highest"
43-
run-tests: true
44-
- php: "7.4"
45-
dependencies: "highest"
46-
- php: "8.0"
47-
dependencies: "highest"
4826
steps:
4927
- name: Set up PHP
5028
uses: shivammathur/setup-php@2.24.0
@@ -56,15 +34,20 @@ jobs:
5634
- name: Checkout code
5735
uses: actions/checkout@v2
5836

59-
- name: "Install lowest dependencies"
37+
- name: Install lowest dependencies
6038
if: ${{ matrix.dependencies == 'lowest' }}
61-
run: composer update --prefer-lowest --no-interaction --no-progress --no-suggest ${{ matrix.composer-options }}
39+
run: composer update --prefer-lowest --no-interaction --no-progress --no-suggest
6240

63-
- name: "Install highest dependencies"
41+
- name: Install highest dependencies
6442
if: ${{ matrix.dependencies == 'highest' }}
65-
run: composer update --no-interaction --no-progress --no-suggest ${{ matrix.composer-options }}
43+
run: |
44+
if [[ "${{ matrix.php }}" =~ ^8\.[1-9]|^9 ]]; then
45+
composer update --no-interaction --no-progress --no-suggest --ignore-platform-reqs
46+
else
47+
composer update --no-interaction --no-progress --no-suggest
48+
fi
6649
67-
- name: "Run unit tests"
50+
- name: Run unit tests
6851
run: ./vendor/bin/phpunit -c phpunit.xml
6952

7053
cs:

0 commit comments

Comments
 (0)