Skip to content
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
33 changes: 25 additions & 8 deletions .github/workflows/livewire-starter-kit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ permissions:
jobs:
tests:
runs-on: ubuntu-latest
env:
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/livewire-starter-kit

strategy:
fail-fast: true
Expand All @@ -23,34 +25,49 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- uses: actions/setup-node@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: 'package-lock.json'

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

- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: composer-${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: composer-${{ runner.os }}-${{ matrix.php }}

- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader

- name: Install dependencies
- name: Install Node dependencies
run: npm ci

- name: Cache Playwright browsers
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps

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

- name: Execute tests
run: php vendor/bin/pest
env:
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/livewire-starter-kit
33 changes: 25 additions & 8 deletions .github/workflows/react-starter-kit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ permissions:
jobs:
tests:
runs-on: ubuntu-latest
env:
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/react-starter-kit

strategy:
fail-fast: true
Expand All @@ -23,34 +25,49 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- uses: actions/setup-node@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: 'package-lock.json'

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

- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: composer-${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: composer-${{ runner.os }}-${{ matrix.php }}

- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader

- name: Install dependencies
- name: Install Node dependencies
run: npm ci

- name: Cache Playwright browsers
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps

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

- name: Execute tests
run: php vendor/bin/pest
env:
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/react-starter-kit
33 changes: 25 additions & 8 deletions .github/workflows/vue-starter-kit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ permissions:
jobs:
tests:
runs-on: ubuntu-latest
env:
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/vue-starter-kit

strategy:
fail-fast: true
Expand All @@ -23,34 +25,49 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- uses: actions/setup-node@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: 'package-lock.json'

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

- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: composer-${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: composer-${{ runner.os }}-${{ matrix.php }}

- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader

- name: Install dependencies
- name: Install Node dependencies
run: npm ci

- name: Cache Playwright browsers
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps

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

- name: Execute tests
run: php vendor/bin/pest
env:
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/vue-starter-kit
2 changes: 1 addition & 1 deletion tests/Browser/Auth/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
actingAs($user);

visit(route('dashboard'))
->click($user->name)
->click('@sidebar-menu-button')
->click('@logout-button')
->assertUrlIs(route('home'))
->assertNoConsoleLogs()
Expand Down