Skip to content

Commit 8d015fa

Browse files
jbrooksukclaude
andcommitted
Fix run-tests workflow
- Target PHP 8.4 only; the committed lock file pins Symfony 8.1 which requires PHP >=8.4.1, so 8.3 cannot install - Publish package (core/Filament) assets before running tests so the Vite manifest exists when feature tests render dashboard views Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 82f138d commit 8d015fa

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

‎.github/workflows/run-tests.yml‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ jobs:
1111
tests:
1212
runs-on: ubuntu-latest
1313

14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
php: [8.3, 8.4]
18-
19-
name: Tests - PHP ${{ matrix.php }}
14+
name: Tests - PHP 8.4
2015

2116
steps:
2217
- name: Checkout code
@@ -25,7 +20,7 @@ jobs:
2520
- name: Setup PHP
2621
uses: shivammathur/setup-php@v2
2722
with:
28-
php-version: ${{ matrix.php }}
23+
php-version: 8.4
2924
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, gd, exif, iconv, fileinfo
3025
coverage: none
3126

@@ -40,15 +35,21 @@ jobs:
4035
uses: actions/cache@v4
4136
with:
4237
path: ${{ steps.composer-cache.outputs.dir }}
43-
key: composer-${{ matrix.php }}-${{ hashFiles('composer.json') }}
38+
key: composer-8.4-${{ hashFiles('composer.lock') }}
4439
restore-keys: |
45-
composer-${{ matrix.php }}-
40+
composer-8.4-
4641
4742
- name: Install dependencies
4843
run: composer install --prefer-dist --no-interaction --no-progress
4944

5045
- name: Generate application key
5146
run: php artisan key:generate
5247

48+
- name: Publish package assets
49+
run: |
50+
php artisan vendor:publish --tag=laravel-assets --ansi --force
51+
php artisan vendor:publish --tag=cachet-assets --ansi --force
52+
php artisan filament:assets --ansi
53+
5354
- name: Execute tests
5455
run: composer test

0 commit comments

Comments
 (0)