Skip to content

Commit 2fd8bcf

Browse files
committed
Update GitHub Actions for Laravel 12
1 parent 2b94fee commit 2fd8bcf

File tree

1 file changed

+45
-36
lines changed

1 file changed

+45
-36
lines changed

.github/workflows/tests.yml

+45-36
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,54 @@ on:
99
jobs:
1010
run:
1111
runs-on: ubuntu-latest
12+
1213
strategy:
1314
fail-fast: false
1415
matrix:
1516
php: [8.2]
16-
laravel: [11.0]
17+
laravel: [11.0, '12.0']
18+
1719
name: P${{ matrix.php }} - L${{ matrix.laravel }}
20+
1821
steps:
19-
- name: Checkout code
20-
uses: actions/checkout@v2
21-
- name: Cache dependencies
22-
uses: actions/cache@v1
23-
with:
24-
path: ~/.composer/cache/files
25-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
26-
- name: Set up PHP
27-
uses: shivammathur/setup-php@v2
28-
with:
29-
php-version: ${{ matrix.php }}
30-
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite
31-
coverage: none
32-
- name: Create Laravel app
33-
run: composer create-project laravel/laravel=${{ matrix.laravel }} ../app --prefer-dist
34-
- name: Install dependencies
35-
run: |
36-
cd ../app
37-
composer require livewire/livewire:^3.4
38-
composer config repositories.local '{"type": "path", "url": "../tall"}' --file composer.json
39-
composer require laravel-frontend-presets/tall:@dev
40-
- name: Install preset
41-
run: |
42-
cd ../app
43-
php artisan ui tall --auth
44-
- name: Overwrite configuration
45-
run: |
46-
cd ../app
47-
rm phpunit.xml
48-
cp ../tall/.github/workflows/phpunit.xml.stub ./phpunit.xml
49-
50-
- name: Execute tests
51-
run: |
52-
cd ../app
53-
vendor/bin/phpunit
22+
- name: Checkout code
23+
uses: actions/checkout@v2
24+
25+
- name: Cache dependencies
26+
uses: actions/cache@v1
27+
with:
28+
path: ~/.composer/cache/files
29+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
30+
31+
- name: Set up PHP
32+
uses: shivammathur/setup-php@v2
33+
with:
34+
php-version: ${{ matrix.php }}
35+
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite
36+
coverage: none
37+
38+
- name: Create Laravel app
39+
run: composer create-project laravel/laravel=${{ matrix.laravel }} ../app --prefer-dist
40+
41+
- name: Install dependencies
42+
run: |
43+
cd ../app
44+
composer require livewire/livewire:^3.4
45+
composer config repositories.local '{"type": "path", "url": "../tall"}' --file composer.json
46+
composer require laravel-frontend-presets/tall:@dev
47+
48+
- name: Install preset
49+
run: |
50+
cd ../app
51+
php artisan ui tall --auth
52+
53+
- name: Overwrite configuration
54+
run: |
55+
cd ../app
56+
rm phpunit.xml
57+
cp ../tall/.github/workflows/phpunit.xml.stub ./phpunit.xml
58+
59+
- name: Execute tests
60+
run: |
61+
cd ../app
62+
vendor/bin/phpunit

0 commit comments

Comments
 (0)