File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -17,24 +17,35 @@ jobs:
17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- uses : actions/checkout@v4
20
+
21
+ - uses : pnpm/action-setup@v2
22
+ with :
23
+ version : 8
24
+
20
25
- uses : actions/setup-node@v4
21
26
with :
22
27
node-version : lts/*
23
28
cache : ' pnpm'
29
+
24
30
- name : Install dependencies
25
- run : npm install -g pnpm && pnpm install
31
+ run : pnpm install --frozen-lockfile
32
+
26
33
- name : Install Playwright Browsers
27
34
run : pnpm exec playwright install --with-deps
35
+
28
36
- name : Install wait-on
29
37
run : npm install -g wait-on
38
+
30
39
- name : Start web application and wait
31
40
working-directory : ./apps/web
32
41
run : |
33
42
pnpm dev & # Start the dev server in background
34
43
wait-on -t 60000 http://localhost:5173 # Wait for up to 60 seconds for the server to respond
44
+
35
45
- name : Run Playwright tests
36
46
working-directory : ./apps/web
37
47
run : pnpm exec playwright test
48
+
38
49
- uses : actions/upload-artifact@v4
39
50
if : ${{ !cancelled() }}
40
51
with :
You can’t perform that action at this time.
0 commit comments