-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 993 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build & Test
"on":
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
test:
name: Build & Test
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a
with:
node-version: "20"
- name: install pnpm
run: |
corepack enable
corepack prepare
- name: playwright install
run: |
pnpm install
pnpm exec playwright install --with-deps
- name: Test
run: pnpm exec playwright test --reporter=list
- if: always()
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
with:
name: playwright-report
path: playwright-report/
retention-days: 30
required-check:
name: All Tests Passed
needs:
- test
runs-on: ubuntu-latest
steps:
- run: echo "All tests passed!"