-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (34 loc) · 1019 Bytes
/
check.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
name: Tests & Build
on: [push, pull_request]
jobs:
check:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: pnpm install
- name: Check type
run: pnpm checktype
- name: Run tests
run: pnpm test
- name: Build umd
run: pnpm build:umd
- name: Run vitest mock tests
run: pnpm --filter=vitest-mock-example test
- name: Run vite example build
run: pnpm --filter=vite-example build
- name: Run next example build
run: pnpm --filter=next-example build
- uses: oven-sh/setup-bun@v1
- name: Run bun example
run: cd bun-example && bun install && bun index.ts && bun build index.ts > /tmp/tmp.js