Skip to content

Commit 7d93fac

Browse files
authored
Support Lumen 10 (#130)
* Support Lumen 10 * Add more runs * Add more runs * Add more runs * Add more runs * Add more runs
1 parent a91f7aa commit 7d93fac

File tree

4 files changed

+61
-10
lines changed

4 files changed

+61
-10
lines changed

.github/workflows/test-config.yml

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,18 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
php: [ '7.3', '8.0', '8.1' ]
20-
swagger-lume-flags: ['latest', 'lumen-6-swagger-2', 'lumen-7-swagger-2', 'lumen-7-swagger-3']
19+
php: [ '7.3', '8.0.2', '8.1' ]
20+
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']
2121

2222
name: PHP ${{ matrix.php }} - ${{ matrix.swagger-lume-flags }}
2323

2424
steps:
2525
- uses: actions/checkout@v2
2626

27+
- name: Info
28+
run: |
29+
echo ${{ matrix.php }} - ${{ matrix.swagger-lume-flags }}
30+
2731
- name: Setup PHP
2832
uses: shivammathur/setup-php@v2
2933
with:
@@ -65,7 +69,41 @@ jobs:
6569
run: |
6670
composer require 'laravel/lumen-framework:7.*' --no-interaction --no-update
6771
composer require 'zircote/swagger-php:3.*' --no-interaction --no-update
68-
if: (matrix.php == '7.3' || matrix.php == '8.0') && matrix.swagger-lume-flags == 'lumen-7-swagger-3'
72+
if: (matrix.php == '7.3') && matrix.swagger-lume-flags == 'lumen-7-swagger-3'
73+
74+
- name: Lumen 8 && Swagger 3
75+
env:
76+
SWAGGER_VERSION: '3.0'
77+
run: |
78+
composer require 'laravel/lumen-framework:8.*' --no-interaction --no-update
79+
composer require 'zircote/swagger-php:3.*' --no-interaction --no-update
80+
if: (matrix.php == '7.3' || matrix.php == '8.0') && matrix.swagger-lume-flags == 'lumen-8-swagger-3'
81+
82+
- name: Lumen 9 && Swagger 3
83+
env:
84+
SWAGGER_VERSION: '3.0'
85+
run: |
86+
composer require 'laravel/lumen-framework:9.*' --no-interaction --no-update
87+
composer require 'zircote/swagger-php:3.*' --no-interaction --no-update
88+
if: matrix.php == '8.0' && matrix.swagger-lume-flags == 'lumen-9-swagger-3'
89+
90+
- name: Lumen 10 && Swagger 3
91+
env:
92+
SWAGGER_VERSION: '3.0'
93+
run: |
94+
composer require 'laravel/lumen-framework:10.*' --no-interaction --no-update
95+
composer require 'zircote/swagger-php:3.*' --no-interaction --no-update
96+
if: matrix.php == '8.1' && matrix.swagger-lume-flags == 'lumen-10-swagger-3'
97+
98+
- name: Lumen 10 && Swagger 3 && Swagger-UI 4
99+
env:
100+
SWAGGER_VERSION: '3.0'
101+
run: |
102+
composer require 'laravel/lumen-framework:10.*' --no-interaction --no-update
103+
composer require 'zircote/swagger-php:3.*' --no-interaction --no-update
104+
composer require 'swagger-api/swagger-ui:4.*' --no-interaction --no-update
105+
composer require 'phpunit/phpunit:10.*' --no-interaction --no-update
106+
if: matrix.php == '8.1' && matrix.swagger-lume-flags == 'lumen-10-swagger-3-ui-4'
69107

70108
- name: Prepare code climate
71109
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.idea
22
.phpunit.result.cache
3+
.phpunit.cache
34
.DS_Store
45
/tests/config
56
/tests/public

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
],
2222
"require": {
2323
"php": ">=7.2 || ^8.0",
24-
"laravel/lumen-framework": "~6.0 || ~7.0 || ^8.0 || ^9.0",
24+
"laravel/lumen-framework": "~6.0 || ~7.0 || ^8.0 || ^9.0 || ^10.0",
2525
"zircote/swagger-php": "~2.0 || 3.*",
26-
"swagger-api/swagger-ui": "^3.0"
26+
"swagger-api/swagger-ui": "^3.0 || ^4.0"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "9.*",
29+
"phpunit/phpunit": "^10.0 || ^9.5",
3030
"mockery/mockery": "1.*",
3131
"php-coveralls/php-coveralls": "^2.0"
3232
},

phpunit.xml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="tests/bootstrap.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
backupGlobals="false"
5+
bootstrap="tests/bootstrap.php"
6+
colors="true"
7+
processIsolation="false"
8+
stopOnFailure="false"
9+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
10+
cacheDirectory=".phpunit.cache"
11+
backupStaticProperties="false"
12+
>
313
<coverage>
4-
<include>
5-
<directory suffix=".php">src/</directory>
6-
</include>
714
<report>
815
<clover outputFile="./tests/storage/logs/test-reports/clover.xml"/>
916
<html outputDirectory="./tests/storage/logs/test-reports" lowUpperBound="50" highLowerBound="80"/>
@@ -21,4 +28,9 @@
2128
<env name="CACHE_DRIVER" value="array"/>
2229
<env name="QUEUE_DRIVER" value="sync"/>
2330
</php>
31+
<source>
32+
<include>
33+
<directory suffix=".php">src/</directory>
34+
</include>
35+
</source>
2436
</phpunit>

0 commit comments

Comments
 (0)