Skip to content

Commit 96c0f87

Browse files
committed
run e2e tests in CI
1 parent 634f7ed commit 96c0f87

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/production.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,27 @@ on:
88
- master
99
- production
1010
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '22'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Run Vitest
25+
run: npx vitest run
26+
27+
- name: Install Playwright Browsers
28+
run: npx playwright test
29+
1130
Deploy-Production:
31+
needs: test
1232
runs-on:
1333
labels: ubuntu-latest
1434
steps:

.github/workflows/tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@ jobs:
2222

2323
- name: Run Vitest
2424
run: npx vitest run
25+
26+
- name: Install Playwright Browsers
27+
run: npx playwright test
2528

2629

0 commit comments

Comments
 (0)