Skip to content

Commit 33f8de0

Browse files
authored
Use laravel-constraint in CI (Laragear#41)
Fixes Laravel version constraints on GitHub Actions
1 parent e57ac25 commit 33f8de0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/php.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,23 @@ jobs:
5353
- "8.0"
5454
- "8.1"
5555
- "8.2"
56-
laravel-constrain:
56+
laravel-constraint:
5757
- "9.*"
5858
- "10.*"
5959
dependencies:
6060
- "lowest"
6161
- "highest"
6262
exclude:
63-
- laravel-constrain: "10.*"
64-
php-version: "8.0"
63+
- php-version: "8.0"
64+
laravel-constraint: "10.*"
65+
6566
steps:
6667
- name: "Set up PHP"
6768
uses: "shivammathur/setup-php@v2"
6869
with:
6970
php-version: "${{ matrix.php-version }}"
70-
extensions: mbstring, intl
71-
coverage: xdebug
71+
extensions: "mbstring, intl"
72+
coverage: "xdebug"
7273

7374
- name: "Checkout code"
7475
uses: "actions/checkout@v3"
@@ -77,6 +78,7 @@ jobs:
7778
uses: "ramsey/composer-install@v2"
7879
with:
7980
dependency-versions: "${{ matrix.dependencies }}"
81+
composer-options: "--with=laravel/framework:${{ matrix.laravel-constraint }}"
8082

8183
- name: "Execute unit tests"
8284
run: "composer run-script test"

0 commit comments

Comments
 (0)