forked from dapplion/benchmark
-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (61 loc) · 1.58 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
63
64
65
name: Tests
on: [pull_request, push]
jobs:
test-node:
name: Test Node
strategy:
fail-fast: false
matrix:
node: [18, 20, 22]
runs-on: ubuntu-latest
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: ${{matrix.node}}
- name: Install
run: yarn install --frozen-lockfile
# </common-build>
- name: Build
run: yarn build
- name: Lint
run: yarn lint
- name: Unit tests
run: yarn test:unit
test-deno:
name: Test Deno
runs-on: ubuntu-latest
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: "22"
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Install
run: yarn install --frozen-lockfile
- name: Build
run: deno run build
- name: Unit tests
run: deno run -A test:unit
test-bun:
name: Test Bun
runs-on: ubuntu-latest
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: "22"
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install
run: yarn install --frozen-lockfile
- name: Build
run: bun run --bun build
- name: Unit tests
run: bun run --bun test:unit