Skip to content

Commit 3f85dcf

Browse files
authored
Merge branch 'main' into parallel_test
2 parents 063a842 + 5ce1ec5 commit 3f85dcf

File tree

4 files changed

+76
-25
lines changed

4 files changed

+76
-25
lines changed

.github/workflows/livewire-starter-kit.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ permissions:
1313
jobs:
1414
tests:
1515
runs-on: ubuntu-latest
16+
env:
17+
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/livewire-starter-kit
1618

1719
strategy:
1820
fail-fast: true
@@ -23,34 +25,49 @@ jobs:
2325

2426
steps:
2527
- name: Checkout code
26-
uses: actions/checkout@v4
28+
uses: actions/checkout@v5
2729

28-
- uses: actions/setup-node@v4
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
2932
with:
3033
node-version: 20
34+
cache: 'npm'
35+
cache-dependency-path: 'package-lock.json'
3136

3237
- name: Setup PHP
3338
uses: shivammathur/setup-php@v2
3439
with:
3540
php-version: ${{ matrix.php }}
3641
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
3742
coverage: none
43+
tools: composer:v2
44+
45+
- name: Cache Composer dependencies
46+
uses: actions/cache@v4
47+
with:
48+
path: ~/.composer/cache
49+
key: composer-${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
50+
restore-keys: composer-${{ runner.os }}-${{ matrix.php }}
3851

3952
- name: Install Composer dependencies
40-
run: composer install --prefer-dist --no-interaction --no-progress
53+
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader
4154

42-
- name: Install dependencies
55+
- name: Install Node dependencies
4356
run: npm ci
4457

58+
- name: Cache Playwright browsers
59+
uses: actions/cache@v4
60+
id: playwright-cache
61+
with:
62+
path: ~/.cache/ms-playwright
63+
key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
64+
4565
- name: Install Playwright browsers
66+
if: steps.playwright-cache.outputs.cache-hit != 'true'
4667
run: npx playwright install --with-deps
4768

4869
- name: Build `livewire-starter-kit`
4970
run: composer run livewire:build
50-
env:
51-
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/livewire-starter-kit
5271

5372
- name: Execute tests
5473
run: php vendor/bin/pest --parallel
55-
env:
56-
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/livewire-starter-kit

.github/workflows/react-starter-kit.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ permissions:
1313
jobs:
1414
tests:
1515
runs-on: ubuntu-latest
16+
env:
17+
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/react-starter-kit
1618

1719
strategy:
1820
fail-fast: true
@@ -23,34 +25,49 @@ jobs:
2325

2426
steps:
2527
- name: Checkout code
26-
uses: actions/checkout@v4
28+
uses: actions/checkout@v5
2729

28-
- uses: actions/setup-node@v4
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
2932
with:
3033
node-version: 20
34+
cache: 'npm'
35+
cache-dependency-path: 'package-lock.json'
3136

3237
- name: Setup PHP
3338
uses: shivammathur/setup-php@v2
3439
with:
3540
php-version: ${{ matrix.php }}
3641
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
3742
coverage: none
43+
tools: composer:v2
44+
45+
- name: Cache Composer dependencies
46+
uses: actions/cache@v4
47+
with:
48+
path: ~/.composer/cache
49+
key: composer-${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
50+
restore-keys: composer-${{ runner.os }}-${{ matrix.php }}
3851

3952
- name: Install Composer dependencies
40-
run: composer install --prefer-dist --no-interaction --no-progress
53+
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader
4154

42-
- name: Install dependencies
55+
- name: Install Node dependencies
4356
run: npm ci
4457

58+
- name: Cache Playwright browsers
59+
uses: actions/cache@v4
60+
id: playwright-cache
61+
with:
62+
path: ~/.cache/ms-playwright
63+
key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
64+
4565
- name: Install Playwright browsers
66+
if: steps.playwright-cache.outputs.cache-hit != 'true'
4667
run: npx playwright install --with-deps
4768

4869
- name: Build `react-starter-kit`
4970
run: composer run react:build
50-
env:
51-
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/react-starter-kit
5271

5372
- name: Execute tests
5473
run: php vendor/bin/pest --parallel
55-
env:
56-
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/react-starter-kit

.github/workflows/vue-starter-kit.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ permissions:
1313
jobs:
1414
tests:
1515
runs-on: ubuntu-latest
16+
env:
17+
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/vue-starter-kit
1618

1719
strategy:
1820
fail-fast: true
@@ -23,34 +25,49 @@ jobs:
2325

2426
steps:
2527
- name: Checkout code
26-
uses: actions/checkout@v4
28+
uses: actions/checkout@v5
2729

28-
- uses: actions/setup-node@v4
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
2932
with:
3033
node-version: 20
34+
cache: 'npm'
35+
cache-dependency-path: 'package-lock.json'
3136

3237
- name: Setup PHP
3338
uses: shivammathur/setup-php@v2
3439
with:
3540
php-version: ${{ matrix.php }}
3641
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
3742
coverage: none
43+
tools: composer:v2
44+
45+
- name: Cache Composer dependencies
46+
uses: actions/cache@v4
47+
with:
48+
path: ~/.composer/cache
49+
key: composer-${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
50+
restore-keys: composer-${{ runner.os }}-${{ matrix.php }}
3851

3952
- name: Install Composer dependencies
40-
run: composer install --prefer-dist --no-interaction --no-progress
53+
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader
4154

42-
- name: Install dependencies
55+
- name: Install Node dependencies
4356
run: npm ci
4457

58+
- name: Cache Playwright browsers
59+
uses: actions/cache@v4
60+
id: playwright-cache
61+
with:
62+
path: ~/.cache/ms-playwright
63+
key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
64+
4565
- name: Install Playwright browsers
66+
if: steps.playwright-cache.outputs.cache-hit != 'true'
4667
run: npx playwright install --with-deps
4768

4869
- name: Build `vue-starter-kit`
4970
run: composer run vue:build
50-
env:
51-
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/vue-starter-kit
5271

5372
- name: Execute tests
5473
run: php vendor/bin/pest --parallel
55-
env:
56-
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/vue-starter-kit

tests/Browser/Auth/AuthenticationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
actingAs($user);
5151

5252
visit(route('dashboard'))
53-
->click($user->name)
53+
->click('@sidebar-menu-button')
5454
->click('@logout-button')
5555
->assertUrlIs(route('home'))
5656
->assertNoConsoleLogs()

0 commit comments

Comments
 (0)