Use laravel-constraint in CI (#41)
Fixes Laravel version constraints on GitHub Actions
This commit is contained in:
12
.github/workflows/php.yml
vendored
12
.github/workflows/php.yml
vendored
@@ -53,22 +53,23 @@ jobs:
|
||||
- "8.0"
|
||||
- "8.1"
|
||||
- "8.2"
|
||||
laravel-constrain:
|
||||
laravel-constraint:
|
||||
- "9.*"
|
||||
- "10.*"
|
||||
dependencies:
|
||||
- "lowest"
|
||||
- "highest"
|
||||
exclude:
|
||||
- laravel-constrain: "10.*"
|
||||
php-version: "8.0"
|
||||
- php-version: "8.0"
|
||||
laravel-constraint: "10.*"
|
||||
|
||||
steps:
|
||||
- name: "Set up PHP"
|
||||
uses: "shivammathur/setup-php@v2"
|
||||
with:
|
||||
php-version: "${{ matrix.php-version }}"
|
||||
extensions: mbstring, intl
|
||||
coverage: xdebug
|
||||
extensions: "mbstring, intl"
|
||||
coverage: "xdebug"
|
||||
|
||||
- name: "Checkout code"
|
||||
uses: "actions/checkout@v3"
|
||||
@@ -77,6 +78,7 @@ jobs:
|
||||
uses: "ramsey/composer-install@v2"
|
||||
with:
|
||||
dependency-versions: "${{ matrix.dependencies }}"
|
||||
composer-options: "--with=laravel/framework:${{ matrix.laravel-constraint }}"
|
||||
|
||||
- name: "Execute unit tests"
|
||||
run: "composer run-script test"
|
||||
|
||||
Reference in New Issue
Block a user