-
-
Notifications
You must be signed in to change notification settings - Fork 66
62 lines (51 loc) · 1.26 KB
/
test.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Test and build
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Deps
run: bun install
- name: Lint
run: bun run lint
- name: Build
run: bun run build
- name: Typecheck
run: bun run typecheck
- name: Vitest
run: bun run vitest:run
- name: Verify Cypress
env:
CI: 1
run: |
bunx cypress verify
bunx cypress info
bunx cypress version
bunx cypress version --component package
bunx cypress version --component binary
bunx cypress version --component electron
bunx cypress version --component node
- name: Cypress tests
run: |
cd apps/test-app
bun run test
env:
TERM: xterm
# Save screenshots as test artifacts
# https://github.com/actions/upload-artifact
- uses: actions/upload-artifact@v4
if: failure()
with:
name: screenshots
path: cypress/screenshots