mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 09:54:03 +00:00
cleanup, run CI tests with both intervention v2 and v3
This commit is contained in:
parent
6c213a9f6f
commit
6d61686f68
3 changed files with 8 additions and 5 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
|
@ -7,11 +7,12 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pest:
|
pest:
|
||||||
name: Tests (Pest) L${{ matrix.laravel }}
|
name: Tests (Pest) L${{ matrix.laravel }} I${{ matrix.intervention }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
laravel: [10, 11, 12]
|
laravel: [10, 11, 12]
|
||||||
|
intervention: [2, 3]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
@ -22,7 +23,9 @@ jobs:
|
||||||
tools: composer:v2
|
tools: composer:v2
|
||||||
coverage: none
|
coverage: none
|
||||||
- name: Install composer dependencies
|
- name: Install composer dependencies
|
||||||
run: composer require "laravel/framework:^${{matrix.laravel}}.0"
|
run: |
|
||||||
|
composer require "laravel/framework:^${{matrix.laravel}}.0"
|
||||||
|
composer require "intervention/image:^${{matrix.intervention}}.0"
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: vendor/bin/pest
|
run: vendor/bin/pest
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
"larastan/larastan": ">=2.4",
|
"larastan/larastan": ">=2.4",
|
||||||
"pestphp/pest": ">=2.0",
|
"pestphp/pest": ">=2.0",
|
||||||
"pestphp/pest-plugin-laravel": ">=2.0",
|
"pestphp/pest-plugin-laravel": ">=2.0",
|
||||||
"intervention/image": "^2.7|^3.0"
|
"intervention/image": "^3.0"
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"laravel": {
|
"laravel": {
|
||||||
|
|
|
||||||
|
|
@ -38,9 +38,9 @@ class GenerateFaviconsCommand extends Command
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check Intervention Image version
|
// Check Intervention Image version
|
||||||
$isV3 = interface_exists('\Intervention\Image\Interfaces\DriverInterface');
|
$interventionV3 = interface_exists('\Intervention\Image\Interfaces\DriverInterface');
|
||||||
|
|
||||||
if ($isV3) {
|
if ($interventionV3) {
|
||||||
// v3.x implementation
|
// v3.x implementation
|
||||||
$manager = new ImageManager(
|
$manager = new ImageManager(
|
||||||
new \Intervention\Image\Drivers\Imagick\Driver()
|
new \Intervention\Image\Drivers\Imagick\Driver()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue