-
-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (35 loc) · 1.05 KB
/
tests.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
name: Tests
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Install Playwright
run: npx playwright install --with-deps
- name: Vitest
run: pnpm test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Run playwright ct tests
run: pnpm test:ct
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: playwright-report
path: playwright-report
- name: Run playwright rtl tests
run: pnpm test:ct:rtl
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: playwright-rtl-report
path: playwright-rrl-report