Skip to content

Commit

Permalink
Merge branch '5.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher committed Oct 23, 2023
2 parents c21c754 + ce0e984 commit d76f44a
Show file tree
Hide file tree
Showing 102 changed files with 1,540 additions and 890 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/breeze-stub-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: tests

on:
push:
branches:
- main
- '*.x'
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
breeze-stub-tests:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ 8.1, 8.2 ]
laravel: [ 10 ]
stack: [ blade, livewire, "livewire-functional", react, vue, react-ts, vue-ts ]
tester: [ phpunit, pest ]

name: Test Laravel Breeze Stubs - PHP ${{matrix.php }} – Laravel ${{ matrix.laravel }} - ${{ matrix.stack }} – ${{ matrix.tester }}

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, pdo_sqlite
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none

- name: Setup Laravel
run: |
composer create-project laravel/laravel:^${{ matrix.laravel }} .
composer require joelbutcher/socialstream:@dev --no-interaction --no-update
composer config repositories.socialstream '{"type": "path", "url": "socialstream"}' --file composer.json
- name: Checkout code
uses: actions/checkout@v4
with:
path: 'socialstream'

- name: Install Socialstream
run: |
composer update "joelbutcher/socialstream" --prefer-dist --no-interaction --no-progress -W
php artisan socialstream:install breeze ${{ matrix.stack == 'vue-ts' && 'vue' || matrix.stack == 'react-ts' && 'react' || matrix.stack }} \
--teams \
--dark \
--api \
--verification \
${{ matrix.tester == 'pest' && '--pest' || '' }} \
${{ (matrix.stack == 'vue' || matrix.stack == 'react') && '--ssr' || '' }} \
${{ (matrix.stack == 'vue-ts' || matrix.stack == 'react-ts') && '--typescript' || '' }}
- name: Install NPM dependencies
run: npm i

- name: Compile assets
run: npm run build

- name: Execute tests
run: ./vendor/bin/${{ matrix.tester }}
env:
DB_CONNECTION: sqlite
DB_DATABASE: ":memory:"
60 changes: 60 additions & 0 deletions .github/workflows/filament-stub-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: tests

on:
push:
branches:
- main
- '*.x'
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
filament-stub-tests:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ 8.1, 8.2 ]
laravel: [ 10 ]

name: Test Filament Stubs - PHP ${{matrix.php }} – Laravel ${{ matrix.laravel }}

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, pdo_sqlite
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none

- name: Setup Laravel
run: |
composer create-project laravel/laravel:^${{ matrix.laravel }} .
composer require joelbutcher/socialstream:@dev --no-interaction --no-update
composer config repositories.socialstream '{"type": "path", "url": "socialstream"}' --file composer.json
- name: Checkout code
uses: actions/checkout@v4
with:
path: 'socialstream'

- name: Install Socialstream
run: |
composer update "joelbutcher/socialstream" --prefer-dist --no-interaction --no-progress -W
php artisan socialstream:install filament default
- name: Install NPM dependencies
run: npm i

- name: Compile assets
run: npm run build

- name: Execute tests
run: ./vendor/bin/phpunit
env:
DB_CONNECTION: sqlite
DB_DATABASE: ":memory:"
68 changes: 68 additions & 0 deletions .github/workflows/jetstream-stub-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: tests

on:
push:
branches:
- main
- '*.x'
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
jetstream-stub-tests:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ 8.1, 8.2 ]
laravel: [ 10 ]
stack: [ inertia, livewire ]
tester: [ phpunit, pest ]

name: Test Laravel Jetstream Stubs - PHP ${{matrix.php }} – Laravel ${{ matrix.laravel }} - ${{ matrix.stack }} – ${{ matrix.tester }}

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, pdo_sqlite
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none

- name: Setup Laravel
run: |
composer create-project laravel/laravel:^${{ matrix.laravel }} .
composer require joelbutcher/socialstream:@dev --no-interaction --no-update
composer config repositories.socialstream '{"type": "path", "url": "socialstream"}' --file composer.json
- name: Checkout code
uses: actions/checkout@v4
with:
path: 'socialstream'

- name: Install Socialstream
run: |
composer update "joelbutcher/socialstream" --prefer-dist --no-interaction --no-progress -W
php artisan socialstream:install jetstream ${{ matrix.stack }} \
--teams \
--dark \
--api \
--verification \
${{ matrix.tester == 'pest' && '--pest' || '' }} \
${{ matrix.stack == 'inertia' && '--ssr' || '' }}
- name: Install NPM dependencies
run: npm i

- name: Compile assets
run: npm run build

- name: Execute tests
run: ./vendor/bin/${{ matrix.tester }}
env:
DB_CONNECTION: sqlite
DB_DATABASE: ":memory:"
60 changes: 1 addition & 59 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -40,61 +40,3 @@ jobs:
- name: Execute tests
run: ./vendor/bin/pest

# stub-tests:
# runs-on: ubuntu-latest
#
# strategy:
# fail-fast: true
# matrix:
# php: [ 8.1, 8.2 ]
# laravel: [ 10 ]
# stack: [ inertia, livewire ]
# tester: [ phpunit, pest ]
#
# name: Test Stubs - PHP ${{matrix.php }} – Laravel ${{ matrix.laravel }} - ${{ matrix.stack }} – ${{ matrix.tester }}
#
# steps:
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# extensions: dom, curl, libxml, mbstring, zip
# ini-values: error_reporting=E_ALL
# tools: composer:v2
# coverage: none
#
# - name: Setup Laravel
# run: |
# composer create-project laravel/laravel:^${{ matrix.laravel }} .
# composer require joelbutcher/socialstream:@dev --no-interaction --no-update
# composer config repositories.socialstream '{"type": "path", "url": "socialstream"}' --file composer.json
#
# - name: Checkout code
# uses: actions/checkout@v3
# with:
# path: 'socialstream'
#
# - name: Install Socialstream
# if: ${{ matrix.tester == 'pest' }}
# run: |
# composer update "joelbutcher/socialstream" --prefer-dist --no-interaction --no-progress -W
# php artisan socialstream:install --stack=${{ matrix.stack }} --teams --api --verification --pest
#
# - name: Install Socialstream
# if: ${{ matrix.tester == 'phpunit' }}
# run: |
# composer update "joelbutcher/socialstream" --prefer-dist --no-interaction --no-progress -W
# php artisan socialstream:install --stack=${{ matrix.stack }} --teams --api --verification
#
# - name: Install NPM dependencies
# run: npm i
#
# - name: Compile assets
# run: npm run build
#
# - name: Execute tests
# run: ./vendor/bin/${{ matrix.tester }}
# env:
# DB_CONNECTION: sqlite
# DB_DATABASE: ":memory:"
9 changes: 9 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: update changelog

on:
release:
types: [released]

jobs:
update:
uses: laravel/.github/.github/workflows/update-changelog.yml@main
4 changes: 0 additions & 4 deletions .styleci.yml

This file was deleted.

101 changes: 101 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# Release Notes
## [Unreleased](https://github.com/joelbutcher/socialstream/compare/v4.4.6...5.x)

## [v5.0.0](https://github.com/joelbutcher/socialstream/compare/v4.4.6...v5.0.0) - 2023-10-19

- Laravel Breeze & Filament Support
- Update install command (Laravel Prompts)
- Select your starter kit (Jetstream, Breeze, Filament Admin Panel) and stack
- Toggle features for your stack
- Install Pest
- Install dark mode support (if supported by the underlying starter kit & stack)
- New socialstream:provider command to build out a new provider
- New socialstream:upgrade command to help easily migrate your Socialstream install to the latest major version

## [v4.4.6](https://github.com/joelbutcher/socialstream/compare/v4.4.5...v4.4.6) - 2023-10-19

- [4.x] Fix ConnectedAccount.vue component by [@joelbutcher](https://github.com/joelbutcher) in #293
- replace emit to dispatch by [@jeroapriyansah](https://github.com/jeroapriyansah) in #291

## [v4.4.5](https://github.com/joelbutcher/socialstream/compare/v4.4.4...v4.4.5) - 2023-09-21

- Fix hidden BitBucket Livewire icon by [@joelbutcher](https://github.com/joelbutcher) in [120c736](https://github.com/joelbutcher/socialstream/commit/120c736a56efcc7834e90e77e99b8eea3371dd8e)

## [v4.4.4](https://github.com/joelbutcher/socialstream/compare/v4.4.3...v4.4.4) - 2023-09-13

- Fix duplicate routes bug by [@chris-sev](https://github.com/chris-sev) in #288

## [v4.4.3](https://github.com/joelbutcher/socialstream/compare/v4.4.2...v4.4.3) - 2023-09-13

- Fix 2fa form showing when password is not set by [@joelbutcher](https://github.com/joelbutcher) in [dd9d49b](https://github.com/joelbutcher/socialstream/commit/dd9d49bd3097a3d094589afed215a2f24b6561c6)

## [v4.4.2](https://github.com/joelbutcher/socialstream/compare/v4.4.1...v4.4.2) - 2023-09-12

- Check that provider callback exists before refreshing tokens by [@joelbutcher](https://github.com/joelbutcher) in [51df430](https://github.com/joelbutcher/socialstream/commit/51df430533f5da3486d4549d0500623a59202c1d)

## [v4.4.1](https://github.com/joelbutcher/socialstream/compare/v4.4.0...v4.4.1) - 2023-09-12

- Allow POST callbacks (e.g. Sign in With Apple) by [@joelbutcher](https://github.com/joelbutcher) in [006612b](https://github.com/joelbutcher/socialstream/commit/006612bec90dff631726453fba86eb339224375c)

## [v4.4.0](https://github.com/joelbutcher/socialstream/compare/v4.3.0...v4.4.0) - 2023-09-12

- [4.x] Added LinkedIn OpenID Support by [@joelbutcher](https://github.com/joelbutcher) in #286

## [v4.3.0](https://github.com/joelbutcher/socialstream/compare/v4.2.1...v4.3.0) - 2023-08-30

- [4.x] Feat: Support new Slack provider by [@joelbutcher](https://github.com/joelbutcher) in #282

## [v4.2.1](https://github.com/joelbutcher/socialstream/compare/v4.2.0...v4.2.1) - 2023-08-30

- Remove requirements for illuminate/support and dbal from composer.json by [@joelbutcher](https://github.com/joelbutcher) in [01a29df](https://github.com/joelbutcher/socialstream/commit/01a29df7e5043a3fdd7ebc6627165d28b8acff1e)

## [v4.2.0](https://github.com/joelbutcher/socialstream/compare/v4.1.3...v4.2.0) - 2023-08-29

- Add Support for Jetstream 4.x by [@joelbutcher](https://github.com/joelbutcher)
- [4.x] use translation for "Connected :at" by [@Flatroy](https://github.com/Flatroy) in #275

## [v4.1.3](https://github.com/joelbutcher/socialstream/compare/v4.1.2...v4.1.3) - 2023-05-17

- Use Pest 2 by [@joelbutcher](https://github.com/joelbutcher) in #268
- Dark mode support by [@joelbutcher](https://github.com/joelbutcher) in #271

## [v4.1.2](https://github.com/joelbutcher/socialstream/compare/v4.1.1...v4.1.2) - 2023-05-14

- [4.x] Use base Symfony response class as return type for `ShareInertiaData` by [@sanis](https://github.com/sanis) in #263

## [v4.1.1](https://github.com/joelbutcher/socialstream/compare/v4.1.0...v4.1.1) - 2023-05-05

- [4.x] Migrate test suite to Pest by [@joelbutcher](https://github.com/joelbutcher) in #258
- [4.x] Publish GenerateRedirectForProvider action when installing the inertia stack by [@joelbutcher](https://github.com/joelbutcher) in #261

## [v4.1.0](https://github.com/joelbutcher/socialstream/compare/v4.0.3...v4.1.0) - 2023-02-24

- [4.x] Add some feature tests by [@joelbutcher](https://github.com/joelbutcher) in #257
- [4.x] Allow customisation of authentication logic by [@joelbutcher](https://github.com/joelbutcher) in #256
- [4.x] Automatically refresh expired tokens by [@rennokki](https://github.com/rennokki) in #248

## [v4.0.3](https://github.com/joelbutcher/socialstream/compare/v4.0.2...v4.0.3) - 2023-02-20

- Fix stubs by [@joelbutcher](https://github.com/joelbutcher) in [4ddd095](https://github.com/joelbutcher/socialstream/commit/4ddd095d8e5b166b4d6b9f275f269c17a531b693)

## [v4.0.2](https://github.com/joelbutcher/socialstream/compare/v4.0.1...v4.0.2) - 2023-02-20

- [4.x] Fix unpublishable provider redirect action by [@joelbutcher](https://github.com/joelbutcher) in #254

## [v4.0.1](https://github.com/joelbutcher/socialstream/compare/v4.0.0...v4.0.1) - 2023-02-17

- Don't enforce returning User model by [@joelbutcher](https://github.com/joelbutcher) in [dc2d258](https://github.com/joelbutcher/socialstream/commit/dc2d2580ab300d05a3eead98bc251ead4b85dbf2)

## [v4.0.0](https://github.com/joelbutcher/socialstream/compare/v3.9.0...v4.0.0) - 2023-02-15

- [4.x] Add native type declarations by [@joelbutcher](https://github.com/joelbutcher) in #245
- [4.x] Support Laravel Jetstream v3.0.0 by [@joelbutcher](https://github.com/joelbutcher)

---

## v1.x, 2.x, and 3.x

> :warning: We no longer support v1.x, 2.x 8and 3.x, please update / upgrade to 4.x or later.
Unfortunately, due to inconsistencies in the release structure of these branches alongside 4.x, the changelog between a number of releases doesn't make sense.
Therefor, these changes have been omitted from this file.
Loading

0 comments on commit d76f44a

Please sign in to comment.