-
-
Notifications
You must be signed in to change notification settings - Fork 92
48 lines (39 loc) · 988 Bytes
/
ci.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
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-14, windows-latest]
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm typecheck
- run: pnpm lint
- name: test
run: |
pnpm test
- name: test-e2e
run: |
pnpm -C samples/e2e i
pnpm -C samples/monorepo-vitest-workspace i
pnpm -C samples/browser i
npm -C samples/imba i
pnpm test-e2e --retry 2
- uses: actions/upload-artifact@v3
if: always()
with:
path: test-results