Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
[1.x] Adds Laravel 10.x support (#82)
Browse files Browse the repository at this point in the history
* Adds Laravel 10.x support

* Removes PHP 7.2

* Update .github/workflows/tests.yml

* Update tests.yml

* Update tests.yml

* Update tests.yml

* Update tests.yml

* Update composer.json

* Update tests.yml

* Update composer.json

* Revert "Update composer.json"

This reverts commit a46ab27.

* Revert "Update tests.yml"

This reverts commit 1fd5ad5.

* Update tests.yml

* Drops Laravel 6

* Drops Laravel 6

* Uses latest version of Pest

* Drops Laravel 7

Co-authored-by: Dries Vints <dries@vints.io>
  • Loading branch information
nunomaduro and driesvints authored Jan 10, 2023
1 parent e82d4bc commit ec66517
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,29 @@ on:
- cron: '0 0 * * *'

jobs:
linux_tests:
tests:
runs-on: ubuntu-22.04

strategy:
fail-fast: true
matrix:
php: [7.3, 7.4, '8.0', 8.1, 8.2]

name: PHP ${{ matrix.php }}
laravel: [8, 9, 10]
exclude:
- php: 7.3
laravel: 9
- php: 7.3
laravel: 10
- php: 7.4
laravel: 9
- php: 7.4
laravel: 10
- php: 8.0
laravel: 10
- php: 8.2
laravel: 8

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

steps:
- name: Checkout code
Expand All @@ -38,7 +52,9 @@ jobs:
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install PHP dependencies
run: composer update --prefer-stable --no-interaction --no-progress
run: |
composer require "laravel/framework=^${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Execute unit tests
run: vendor/bin/pest --colors=always --verbose --group="unit"
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"require": {
"php": "^7.3|^8.0",
"aws/aws-sdk-php": "^3.148.3",
"laravel/framework": "^6.0|^7.0|^8.0|^9.0",
"symfony/yaml": "^4.3.4|^5.1.4|^6.0"
"laravel/framework": "^8.0|^9.0|^10.0",
"symfony/yaml": "^5.1.4|^6.0"
},
"require-dev": {
"orchestra/testbench": "^5.0|^6.17.1|^7.0",
"pestphp/pest": "^1.3"
"orchestra/testbench": "^6.17.1|^7.0|^8.0",
"pestphp/pest": "^1.22.3"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit ec66517

Please sign in to comment.