From 7d93facb08d66446c75a51cdfc70f10578671504 Mon Sep 17 00:00:00 2001 From: Darius Matulionis Date: Tue, 9 May 2023 16:27:30 +0300 Subject: [PATCH] Support Lumen 10 (#130) * Support Lumen 10 * Add more runs * Add more runs * Add more runs * Add more runs * Add more runs --- .github/workflows/test-config.yml | 44 ++++++++++++++++++++++++++++--- .gitignore | 1 + composer.json | 6 ++--- phpunit.xml | 20 +++++++++++--- 4 files changed, 61 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test-config.yml b/.github/workflows/test-config.yml index 10e28fc..10b76cb 100644 --- a/.github/workflows/test-config.yml +++ b/.github/workflows/test-config.yml @@ -16,14 +16,18 @@ jobs: strategy: fail-fast: true matrix: - php: [ '7.3', '8.0', '8.1' ] - swagger-lume-flags: ['latest', 'lumen-6-swagger-2', 'lumen-7-swagger-2', 'lumen-7-swagger-3'] + php: [ '7.3', '8.0.2', '8.1' ] + swagger-lume-flags: ['latest', 'lumen-6-swagger-2', 'lumen-7-swagger-2', 'lumen-7-swagger-3', 'lumen-8-swagger-3', 'lumen-9-swagger-3', 'lumen-10-swagger-3', 'lumen-10-swagger-3-ui-4'] name: PHP ${{ matrix.php }} - ${{ matrix.swagger-lume-flags }} steps: - uses: actions/checkout@v2 + - name: Info + run: | + echo ${{ matrix.php }} - ${{ matrix.swagger-lume-flags }} + - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -65,7 +69,41 @@ jobs: run: | composer require 'laravel/lumen-framework:7.*' --no-interaction --no-update composer require 'zircote/swagger-php:3.*' --no-interaction --no-update - if: (matrix.php == '7.3' || matrix.php == '8.0') && matrix.swagger-lume-flags == 'lumen-7-swagger-3' + if: (matrix.php == '7.3') && matrix.swagger-lume-flags == 'lumen-7-swagger-3' + + - name: Lumen 8 && Swagger 3 + env: + SWAGGER_VERSION: '3.0' + run: | + composer require 'laravel/lumen-framework:8.*' --no-interaction --no-update + composer require 'zircote/swagger-php:3.*' --no-interaction --no-update + if: (matrix.php == '7.3' || matrix.php == '8.0') && matrix.swagger-lume-flags == 'lumen-8-swagger-3' + + - name: Lumen 9 && Swagger 3 + env: + SWAGGER_VERSION: '3.0' + run: | + composer require 'laravel/lumen-framework:9.*' --no-interaction --no-update + composer require 'zircote/swagger-php:3.*' --no-interaction --no-update + if: matrix.php == '8.0' && matrix.swagger-lume-flags == 'lumen-9-swagger-3' + + - name: Lumen 10 && Swagger 3 + env: + SWAGGER_VERSION: '3.0' + run: | + composer require 'laravel/lumen-framework:10.*' --no-interaction --no-update + composer require 'zircote/swagger-php:3.*' --no-interaction --no-update + if: matrix.php == '8.1' && matrix.swagger-lume-flags == 'lumen-10-swagger-3' + + - name: Lumen 10 && Swagger 3 && Swagger-UI 4 + env: + SWAGGER_VERSION: '3.0' + run: | + composer require 'laravel/lumen-framework:10.*' --no-interaction --no-update + composer require 'zircote/swagger-php:3.*' --no-interaction --no-update + composer require 'swagger-api/swagger-ui:4.*' --no-interaction --no-update + composer require 'phpunit/phpunit:10.*' --no-interaction --no-update + if: matrix.php == '8.1' && matrix.swagger-lume-flags == 'lumen-10-swagger-3-ui-4' - name: Prepare code climate run: | diff --git a/.gitignore b/.gitignore index b58dcf3..95eab5a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .idea .phpunit.result.cache +.phpunit.cache .DS_Store /tests/config /tests/public diff --git a/composer.json b/composer.json index 72ff0dd..8b17321 100644 --- a/composer.json +++ b/composer.json @@ -21,12 +21,12 @@ ], "require": { "php": ">=7.2 || ^8.0", - "laravel/lumen-framework": "~6.0 || ~7.0 || ^8.0 || ^9.0", + "laravel/lumen-framework": "~6.0 || ~7.0 || ^8.0 || ^9.0 || ^10.0", "zircote/swagger-php": "~2.0 || 3.*", - "swagger-api/swagger-ui": "^3.0" + "swagger-api/swagger-ui": "^3.0 || ^4.0" }, "require-dev": { - "phpunit/phpunit": "9.*", + "phpunit/phpunit": "^10.0 || ^9.5", "mockery/mockery": "1.*", "php-coveralls/php-coveralls": "^2.0" }, diff --git a/phpunit.xml b/phpunit.xml index ac936d1..c5164dd 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,9 +1,16 @@ - + - - src/ - @@ -21,4 +28,9 @@ + + + src/ + +