-
Notifications
You must be signed in to change notification settings - Fork 106
64 lines (52 loc) · 1.4 KB
/
tests.yaml
File metadata and controls
64 lines (52 loc) · 1.4 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test Ace Diff
on:
workflow_dispatch:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Install dependencies
run: |
pnpm install
pnpm add @parcel/rust-linux-x64-gnu
pnpm add @parcel/watcher-linux-x64-glibc
pnpm add @swc/core-linux-x64-gnu
pnpm add lightningcss-linux-x64-gnu
- name: Install Cypress binary
run: pnpm exec cypress install
- name: Lint
run: |
pnpm exec eslint src --max-warnings 0
pnpm exec prettier --check .
- name: Type Check
run: pnpm run typecheck
- name: Build
run: pnpm run build
- name: Check Types (attw)
run: pnpm run attw
- name: Run static server in the background
run: pnpm run serve &
- name: Wait for server
run: sleep 5
- name: Run tests
run: pnpm test
- name: Upload Cypress artifacts on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-artifacts
path: |
cypress/screenshots
cypress/videos
retention-days: 7