Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 1929f6f

Browse files
committed
refactor(workflows): integrate jest and plawright
1 parent 5ccd5f5 commit 1929f6f

File tree

2 files changed

+27
-30
lines changed

2 files changed

+27
-30
lines changed

.github/workflows/playwright.yml renamed to .github/workflows/build.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,36 @@
1-
name: Playwright tests
1+
name: build
22
on:
33
push:
44
branches: [main, master]
55
pull_request:
66
branches: [main, master]
7+
78
jobs:
8-
test:
9+
jest-tests:
10+
name: Run Jest Tests
11+
timeout-minutes: 60
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: lts/*
18+
- name: Install dependencies
19+
run: npm install -g pnpm && pnpm install
20+
- name: Install dependencies for e2e/site
21+
run: |
22+
cd e2e/site
23+
npm install
24+
- name: Run Jest tests with coverage
25+
run: pnpm exec jest --ci --coverage --reporters=github-actions --reporters=summary
26+
- name: Upload coverage report
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: coverage-report
30+
path: coverage/
31+
32+
playwright-tests:
33+
name: Run Playwright Tests
934
timeout-minutes: 60
1035
runs-on: ubuntu-latest
1136
steps:

.github/workflows/jest.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)