Skip to content

Commit

Permalink
Merge pull request #16 from RohanSakhale/laravel-10
Browse files Browse the repository at this point in the history
Laravel 10
  • Loading branch information
danharrin authored Mar 12, 2023
2 parents 50ddf20 + 575366c commit a559966
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 7,757 deletions.
78 changes: 38 additions & 40 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,43 @@
name: tests

on:
push:
pull_request:
push:
pull_request:

jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.2, 8.1, 8.0 ]
laravel: [ 10.*, 9.*, 8.* ]
dependency-version: [ prefer-stable ]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
exclude:
- php: 8.0
laravel: 10.*
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, pdo, pdo_sqlite
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit --verbose
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.2, 8.1, 8.0 ]
laravel: [ 10.*, 9.* ]
dependency-version: [ prefer-stable ]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
exclude:
- php: 8.0
laravel: 10.*
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, pdo, pdo_sqlite
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/.idea
/vendor
.phpunit.result.cache
.phpunit.result.cache
.phpunit.cache
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
],
"require": {
"php": "^8.0",
"illuminate/support": "^8.0|^9.0|^10.0"
"illuminate/support": "^9.0|^10.0"
},
"require-dev": {
"livewire/livewire": "^2.3",
"orchestra/testbench": "^6.2|^7.0|^8.0",
"phpunit/phpunit": "^9.4",
"symplify/monorepo-builder": "^9.0"
"orchestra/testbench": "^7.0|^8.0",
"phpunit/phpunit": "^9.0|^10.0"
},
"autoload": {
"psr-4": {
Expand All @@ -36,5 +35,5 @@
"config": {
"sort-packages": true
},
"minimum-stability": "dev"
"minimum-stability": "stable"
}
Loading

0 comments on commit a559966

Please sign in to comment.