Skip to content

Commit

Permalink
Merge pull request #9 from carsdotcom/laravel-11
Browse files Browse the repository at this point in the history
Laravel 11 Support
  • Loading branch information
jwadhams authored Jul 12, 2024
2 parents 20a471e + 04fd222 commit c7488fd
Show file tree
Hide file tree
Showing 6 changed files with 2,097 additions and 1,538 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Unit Tests

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
php: ['8.2']
laravel: [9.*, 10.*, 11.*]
include:
- php: 8.1
laravel: 9.*
- php: 8.1
laravel: 10.*

name: Unit Tests - PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
steps:
- uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, php-xml, sqlite3
coverage: xdebug

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction
- name: Run test suite
run: composer run-script test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ Homestead.yaml
Homestead.json
/.vagrant
.phpunit.result.cache
.phpunit.cache
phpunit.xml.bak
14 changes: 8 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@
],
"license": "MIT",
"require": {
"carsdotcom/laravel-json-schema": "^v1.0 || v2.0",
"carsdotcom/laravel-json-schema": "^v1.0 || v2.0 || v2.1",
"ext-simplexml": "*",
"php": "^8.1",
"guzzlehttp/guzzle": "^7.5",
"laravel/framework": "^9.19 || ^10.0"
"laravel/framework": "^9.19 || ^10.0 || ^11.0"
},
"require-dev": {
"brianium/paratest": "^6.6",
"fakerphp/faker": "^1.9.1",
"nunomaduro/collision": "^6.1",
"orchestra/testbench": "^7.11",
"nunomaduro/collision": "^6.1|7.*|8.*",
"orchestra/testbench": "7.*|8.*|9.*",
"phpstan/phpstan": "^1.8",
"phpunit/phpunit": "^9.5.10",
"phpunit/phpunit": "~8.0|~9.0|^10.5",
"squizlabs/php_codesniffer": "^3.7",
"timacdonald/log-fake": "^2.1"
},
Expand All @@ -47,6 +46,9 @@
]
}
},
"scripts": {
"test": "vendor/bin/phpunit"
},
"minimum-stability": "dev",
"prefer-stable": true
}
Loading

0 comments on commit c7488fd

Please sign in to comment.