Skip to content

Commit

Permalink
Merge branch 'feat/new-starter-kits'
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher committed Feb 28, 2025
2 parents c59395f + 117c167 commit aa525ba
Show file tree
Hide file tree
Showing 347 changed files with 3,941 additions and 13,334 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/breeze-stub-tests.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/filament-stub-tests.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/jetstream-stub-tests.yml

This file was deleted.

121 changes: 119 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- cron: '0 0 * * *'

jobs:
tests:
unit-tests:

runs-on: ubuntu-latest
strategy:
Expand All @@ -19,7 +19,7 @@ jobs:
php: [ 8.2, 8.3 ]
laravel: [ 11, 12 ]

name: Run Tests – PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
name: Run Tests – P${{ matrix.php }} - L${{ matrix.laravel }}

steps:
- name: Checkout code
Expand All @@ -40,3 +40,120 @@ jobs:
- name: Execute tests
run: ./vendor/bin/pest

test-starter-kits:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.2, 8.3, 8.4 ]
laravel: [ 12 ]
stack: [ react, vue, livewire ]
tester: [ phpunit, pest ]
stability: [ prefer-lowest, prefer-stable ]

name: Test Laravel Starter Kit Integrations - P${{ matrix.php }} – L${{ matrix.laravel }} (${{ matrix.stack }}, ${{ matrix.tester }}) - ${{ matrix.stability }}

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 Project
run: |
composer create-project laravel/${{ matrix.stack }}-starter-kit --stability=dev --no-interaction --no-update
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" -W --prefer-dist --no-interaction
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
php artisan socialstream:install ${{ matrix.stack }} \
${{ matrix.tester == 'pest' && '--pest' || '' }} \
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- 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:"

test-filament:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.2, 8.3, 8.4 ]
laravel: [ 12 ]
tester: [ phpunit, pest ]
stability: [ prefer-lowest, prefer-stable ]

name: Test Filament Integration - P${{ matrix.php }} – L${{ matrix.laravel }} (${{ matrix.stack }}, ${{ matrix.tester }}) - ${{ matrix.stability }}

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

- name: Setup Project
run: |
composer create-project laravel/laravel --stability=dev --no-interaction --no-update
composer require filament/filament:"^3.2" -W --no-interaction --no-update
php artisan filament:install --panels
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" -W --prefer-dist --no-interaction
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
php artisan socialstream:install ${{ matrix.stack }} \
${{ matrix.tester == 'pest' && '--pest' || '' }} \
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- 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:"
20 changes: 7 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,19 @@
],
"require": {
"php": "^8.2",
"illuminate/contracts": "^11.0|^12.0",
"laravel/prompts": "^0.1|^0.2|^0.3",
"illuminate/contracts": "^12.0",
"laravel/prompts": "^0.3",
"laravel/socialite": "^5.18"
},
"require-dev": {
"inertiajs/inertia-laravel": "^2.0",
"laravel/breeze": "^2.3",
"laravel/jetstream": "^5.0",
"laravel/sanctum": "^4.0",
"livewire/livewire": "^3.5.0",
"mockery/mockery": "^1.6",
"orchestra/testbench": "^9.0|^10.0",
"orchestra/testbench-core": "^9.9.1|^10.0",
"pestphp/pest": "^2.0|^3.0",
"pestphp/pest-plugin-laravel": "^2.2|^3.0",
"phpunit/phpunit": "^10.5.35|^11.5.3|^12.0.1"
"orchestra/testbench": "^10.0",
"orchestra/testbench-core": "^10.0",
"pestphp/pest": "^3.0",
"pestphp/pest-plugin-laravel": "^3.0"
},
"autoload": {
"psr-4": {
Expand All @@ -45,10 +42,7 @@
"autoload-dev": {
"psr-4": {
"JoelButcher\\Socialstream\\Tests\\": "tests/",
"App\\": [
"stubs/app",
"stubs/jetstream/app"
],
"App\\": "stubs/app",
"Database\\Factories\\": "workbench/database/factories/"
}
},
Expand Down
Loading

0 comments on commit aa525ba

Please sign in to comment.