Skip to content

Commit

Permalink
feat: add support for Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Feb 21, 2024
1 parent 7dd6299 commit aa3cfb9
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 30 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -30,15 +30,11 @@ jobs:
phpstan:
runs-on: ubuntu-latest

strategy:
matrix:
dependency-version: [prefer-lowest, prefer-stable]

name: PHPStan (${{ matrix.dependency-version }})
name: PHPStan

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -48,7 +44,7 @@ jobs:
coverage: none

- name: Install Dependencies
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist --no-progress --ansi
run: composer update --no-interaction --prefer-dist --no-progress --ansi

- name: Run PHPStan
run: vendor/bin/phpstan analyse --no-progress --ansi
19 changes: 12 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
php: ['8.2']
testbench: ['8.*']
dependency-version: [prefer-lowest, prefer-stable]
php: [8.2, 8.3]
laravel: [10.*, 11.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*

name: PHP ${{ matrix.php }} - Testbench ${{ matrix.testbench }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.os }} - ${{ matrix.stability }}

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -33,8 +38,8 @@ jobs:
- name: Install dependencies
run: |
composer require "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Unit Tests
run: vendor/bin/pest --colors=always
7 changes: 0 additions & 7 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ return Socialite::driver('worksome')->redirect();

## Change log

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
Please see [GitHub Releases](https://github.com/worksome/socialite-worksome/releases) for more information on what has changed recently.

## Credits

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"require": {
"php": "^8.2",
"ext-json": "*",
"socialiteproviders/manager": "^4.3"
"socialiteproviders/manager": "^4.5"
},
"require-dev": {
"laravel/pint": "^1.7",
"orchestra/testbench": "^8.0",
"pestphp/pest": "^2.0",
"laravel/pint": "^1.13.10",
"orchestra/testbench": "^8.21 || ^9.0",
"pestphp/pest": "^2.33",
"phpstan/phpstan": "^1.10",
"symfony/var-dumper": "^6.2"
"symfony/var-dumper": "^6.4 || ^7.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
<coverage>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
</source>
</phpunit>

0 comments on commit aa3cfb9

Please sign in to comment.