Skip to content

Commit 5cd9104

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent d2e06d2 commit 5cd9104

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88

99
CHANGELOG.md export-ignore
1010
README.md export-ignore
11+
.github/workflows/browser-test.yml export-ignore
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: browser-tests
2+
3+
on:
4+
push:
5+
branches:
6+
- pest-ci
7+
- develop
8+
- main
9+
pull_request:
10+
branches:
11+
- pest-ci
12+
- develop
13+
- main
14+
15+
jobs:
16+
ci:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: 8.4
27+
tools: composer:v2
28+
coverage: xdebug
29+
30+
- name: Setup Node
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: '22'
34+
cache: 'npm'
35+
36+
- name: Install Node Dependencies
37+
run: npm ci
38+
39+
- name: Install Playwright Dependencies
40+
run: npm install playwright@latest
41+
42+
- name: Install Playwright browsers
43+
run: npx playwright install --with-deps
44+
45+
- name: Add laravel-labs/starter-kit-browser-tests repository
46+
run: |
47+
composer config repositories.brosert-tests '{"type": "cvs", "url": "https://github.com/laravel-labs/starter-kit-browser-tests"}' --file composer.json
48+
composer require "laravel-labs/starter-kit-browser-tests:dev-main" --dev --no-update
49+
50+
- name: Install Dependencies
51+
run: composer install --no-interaction --prefer-dist --optimize-autoloader
52+
53+
- name: Copy Environment File
54+
run: cp .env.example .env
55+
56+
- name: Generate Application Key
57+
run: php artisan key:generate
58+
59+
- name: Build Assets
60+
run: npm run build
61+
62+
- name: Tests
63+
run: ./vendor/bin/pest vendor/laravel-labs/starter-kit-browser-tests/tests

0 commit comments

Comments
 (0)