Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 12.x Compatibility #165

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 45 additions & 36 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,54 @@ on:
jobs:
run:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [8.2]
laravel: [11.0]
laravel: ['12.0']

name: P${{ matrix.php }} - L${{ matrix.laravel }}

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite
coverage: none
- name: Create Laravel app
run: composer create-project laravel/laravel=${{ matrix.laravel }} ../app --prefer-dist
- name: Install dependencies
run: |
cd ../app
composer require livewire/livewire:^3.4
composer config repositories.local '{"type": "path", "url": "../tall"}' --file composer.json
composer require laravel-frontend-presets/tall:@dev
- name: Install preset
run: |
cd ../app
php artisan ui tall --auth
- name: Overwrite configuration
run: |
cd ../app
rm phpunit.xml
cp ../tall/.github/workflows/phpunit.xml.stub ./phpunit.xml

- name: Execute tests
run: |
cd ../app
vendor/bin/phpunit
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite
coverage: none

- name: Create Laravel app
run: composer create-project laravel/laravel=${{ matrix.laravel }} ../app --prefer-dist

- name: Install dependencies
run: |
cd ../app
composer require livewire/livewire:^3.4
composer config repositories.local '{"type": "path", "url": "../tall"}' --file composer.json
composer require laravel-frontend-presets/tall:@dev

- name: Install preset
run: |
cd ../app
php artisan ui tall --auth

- name: Overwrite configuration
run: |
cd ../app
rm phpunit.xml
cp ../tall/.github/workflows/phpunit.xml.stub ./phpunit.xml

- name: Execute tests
run: |
cd ../app
vendor/bin/phpunit
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"require": {
"php": "^8.2",
"laravel/ui": "^4.5",
"illuminate/support": "^11.0"
"illuminate/support": "^12.0"
},
"require-dev": {
"phpunit/phpunit": "^10.5"
Expand Down
Loading
Loading