Skip to content

Commit c7488fd

Browse files
authored
Merge pull request #9 from carsdotcom/laravel-11
Laravel 11 Support
2 parents 20a471e + 04fd222 commit c7488fd

File tree

6 files changed

+2097
-1538
lines changed

6 files changed

+2097
-1538
lines changed

.github/workflows/tests.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Unit Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
php: ['8.2']
12+
laravel: [9.*, 10.*, 11.*]
13+
include:
14+
- php: 8.1
15+
laravel: 9.*
16+
- php: 8.1
17+
laravel: 10.*
18+
19+
name: Unit Tests - PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
20+
steps:
21+
- uses: actions/checkout@v1
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
extensions: mbstring, php-xml, sqlite3
28+
coverage: xdebug
29+
30+
- name: Install dependencies
31+
run: |
32+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
33+
composer update --prefer-dist --no-interaction
34+
35+
- name: Run test suite
36+
run: composer run-script test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ Homestead.yaml
2323
Homestead.json
2424
/.vagrant
2525
.phpunit.result.cache
26+
.phpunit.cache
27+
phpunit.xml.bak

composer.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@
99
],
1010
"license": "MIT",
1111
"require": {
12-
"carsdotcom/laravel-json-schema": "^v1.0 || v2.0",
12+
"carsdotcom/laravel-json-schema": "^v1.0 || v2.0 || v2.1",
1313
"ext-simplexml": "*",
1414
"php": "^8.1",
1515
"guzzlehttp/guzzle": "^7.5",
16-
"laravel/framework": "^9.19 || ^10.0"
16+
"laravel/framework": "^9.19 || ^10.0 || ^11.0"
1717
},
1818
"require-dev": {
19-
"brianium/paratest": "^6.6",
2019
"fakerphp/faker": "^1.9.1",
21-
"nunomaduro/collision": "^6.1",
22-
"orchestra/testbench": "^7.11",
20+
"nunomaduro/collision": "^6.1|7.*|8.*",
21+
"orchestra/testbench": "7.*|8.*|9.*",
2322
"phpstan/phpstan": "^1.8",
24-
"phpunit/phpunit": "^9.5.10",
23+
"phpunit/phpunit": "~8.0|~9.0|^10.5",
2524
"squizlabs/php_codesniffer": "^3.7",
2625
"timacdonald/log-fake": "^2.1"
2726
},
@@ -47,6 +46,9 @@
4746
]
4847
}
4948
},
49+
"scripts": {
50+
"test": "vendor/bin/phpunit"
51+
},
5052
"minimum-stability": "dev",
5153
"prefer-stable": true
5254
}

0 commit comments

Comments
 (0)