File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change 7
7
jobs :
8
8
test :
9
9
timeout-minutes : 60
10
- runs-on : windows -latest
10
+ runs-on : ubuntu -latest
11
11
steps :
12
12
- uses : actions/checkout@v4
13
+ - uses : pnpm/action-setup@v2
14
+ with :
15
+ version : 9
13
16
- uses : actions/setup-node@v4
14
17
with :
15
- node-version : 18
18
+ node-version : 20
19
+ cache : ' pnpm'
16
20
- name : Install dependencies
17
- run : npm ci
21
+ run : pnpm install
18
22
- name : Install Playwright Browsers
19
- run : npx playwright install --with-deps
23
+ run : pnpm exec playwright install --with-deps chromium firefox
24
+ - name : Build the project
25
+ run : pnpm build
26
+ - name : Start the application
27
+ run : pnpm start &
28
+ - name : Wait for the application to be ready
29
+ run : |
30
+ npx wait-on http://localhost:3000
20
31
- name : Run Playwright tests
21
- run : npx playwright test
22
- env :
23
- CI : true
24
- NEXT_PUBLIC_GRAPHQL_URL : ${{ secrets.NEXT_PUBLIC_GRAPHQL_URL }}
32
+ run : pnpm exec playwright test
25
33
- uses : actions/upload-artifact@v4
26
34
if : always()
27
35
with :
You can’t perform that action at this time.
0 commit comments