Skip to content

Commit

Permalink
Laravel 9.x support, first pass
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldyrynda committed Jan 26, 2022
1 parent f961920 commit 6a4826c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ on:

jobs:
test:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
fail-fast: true
matrix:
php: [8.0, 7.4, 7.3]
laravel: [^8.12]
dependency-version: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]
php: [8.1,8.0, 7.4, 7.3]
laravel: [^8.12, ^9.0]
exclude:
- php: 7.3
laravel: '^9.0'
- php: 7.4
laravel: '^9.0'

name: P${{ matrix.php }} - L${{ matrix.laravel }} ${{ matrix.dependency-version }} - ${{ matrix.os }}
name: P${{ matrix.php }} - L${{ matrix.laravel }}

steps:
- name: Checkout code
Expand All @@ -38,7 +41,8 @@ jobs:

- name: Install dependencies
run: |
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
composer require "illuminate/contracts=${{ matrix.laravel }}" --prefer-dist --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/phpunit
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"type": "utility",
"require": {
"php": "^7.3|^8.0",
"illuminate/database": "^8.12",
"illuminate/events": "^8.12"
"illuminate/database": "^8.12|^9.0",
"illuminate/events": "^8.12|^9.0"
},
"require-dev": {
"phpunit/phpunit": "^9.3"
Expand Down

0 comments on commit 6a4826c

Please sign in to comment.