-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
70 lines (66 loc) · 1.7 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
66
67
68
69
70
name: test
on:
push:
branches:
- "main"
pull_request:
branches:
- main
jobs:
test-node:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["latest"]
typescript: ["4.5", "4.6", "4.7", "4.8", "4.9", "5.0", "5.3"]
name: Test with TypeScript ${{ matrix.typescript }} on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: yarn install
- run: yarn add typescript@${{ matrix.typescript }}
- run: yarn build
- run: yarn test
test-deno:
runs-on: ubuntu-latest
strategy:
matrix:
deno: ["v1.x"]
name: Test with Deno ${{ matrix.deno }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno }}
- run: yarn install
- run: yarn build:deno
- run: deno --version
- run: deno test
working-directory: ./deno/lib
- run: deno run ./index.ts
working-directory: ./deno/lib
- run: deno run ./mod.ts
working-directory: ./deno/lib
- run: |
deno bundle ./mod.ts ./bundle.js
deno run ./bundle.js
working-directory: ./deno/lib
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["latest"]
name: Lint on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: yarn install
- run: yarn prettier:check
- run: yarn lint:check