Skip to content

Commit a212d50

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 488b217 commit a212d50

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: React Starter Kit Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
tests:
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: true
19+
matrix:
20+
php: [8.3, 8.4]
21+
22+
name: PHP ${{ matrix.php }}
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
32+
- name: Setup PHP
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: ${{ matrix.php }}
36+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
37+
coverage: none
38+
39+
- name: Install Composer dependencies
40+
run: composer install --prefer-dist --no-interaction --no-progress
41+
42+
- name: Install dependencies
43+
run: npm ci
44+
45+
- name: Install Playwright browsers
46+
run: npx playwright install --with-deps
47+
48+
- name: Build `react-starter-kit`
49+
run: composer run vue:build
50+
env:
51+
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/react-starter-kit
52+
53+
- name: Execute tests
54+
run: php vendor/bin/pest
55+
env:
56+
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/react-starter-kit

0 commit comments

Comments
 (0)