-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (50 loc) · 1.25 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: "test"
on:
pull_request:
branches: ["master"]
push:
branches: ["master"]
jobs:
test-bun:
name: "Bun ${{matrix.bun-version}}"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
bun-version: [1]
steps:
- uses: "actions/checkout@v3"
- uses: "oven-sh/setup-bun@v1"
with:
bun-version: "${{matrix.bun-version}}"
- uses: "actions/setup-node@v3"
with:
node-version: 20
cache: "npm"
- run: "npm install --frozen-lockfile"
- run: "bun run lint"
- run: "bunx prettier -c src/"
- run: "bun run test"
- run: "bun run build"
env:
DEFER_NO_LOCAL_SCHEDULER: 1
test-node:
name: "Node ${{matrix.node-version}}"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
node-version: [18, 20]
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-node@v3"
with:
node-version: "${{matrix.node-version}}"
cache: "npm"
- run: "npm install --frozen-lockfile"
- run: "npm run lint"
- run: "npx prettier -c src/"
- run: "npm run test"
- run: "npm run build"
env:
DEFER_NO_LOCAL_SCHEDULER: 1