Skip to content

Commit fba0d54

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

File tree

1 file changed

+37
-13
lines changed

1 file changed

+37
-13
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,36 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
dependencies: ["lowest", "highest"]
25-
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
24+
dependencies:
25+
- "lowest"
26+
- "highest"
27+
experimental:
28+
- false
29+
include:
30+
- php: "7.4"
31+
composer-options: ""
32+
experimental: true
33+
dependencies: "highest"
34+
- php: "8.0"
35+
composer-options: ""
36+
experimental: true
37+
dependencies: "highest"
38+
- php: "8.1"
39+
composer-options: ""
40+
experimental: true
41+
dependencies: "highest"
42+
- php: "8.2"
43+
composer-options: ""
44+
experimental: true
45+
dependencies: "highest"
46+
- php: "8.3"
47+
composer-options: "--ignore-platform-reqs"
48+
experimental: true
49+
dependencies: "highest"
50+
- php: "8.4"
51+
composer-options: "--ignore-platform-reqs"
52+
experimental: true
53+
dependencies: "highest"
2654
steps:
2755
- name: Set up PHP
2856
uses: shivammathur/[email protected]
@@ -34,20 +62,15 @@ jobs:
3462
- name: Checkout code
3563
uses: actions/checkout@v2
3664

37-
- name: Install lowest dependencies
65+
- name: "Install lowest dependencies"
3866
if: ${{ matrix.dependencies == 'lowest' }}
39-
run: composer update --prefer-lowest --no-interaction --no-progress --no-suggest
67+
run: composer update --prefer-lowest --no-interaction --no-progress --no-suggest ${{ matrix.composer-options }}
4068

41-
- name: Install highest dependencies
69+
- name: "Install highest dependencies"
4270
if: ${{ matrix.dependencies == 'highest' }}
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
71+
run: composer update --no-interaction --no-progress --no-suggest ${{ matrix.composer-options }}
4972

50-
- name: Run unit tests
73+
- name: "Run unit tests"
5174
run: ./vendor/bin/phpunit -c phpunit.xml
5275

5376
cs:
@@ -73,7 +96,8 @@ jobs:
7396
runs-on: ubuntu-latest
7497
strategy:
7598
matrix:
76-
php: ['7.4']
99+
php:
100+
- '7.4'
77101
steps:
78102
- name: Set up PHP
79103
uses: shivammathur/[email protected]

0 commit comments

Comments
 (0)