@@ -15,36 +15,26 @@ jobs:
15
15
- run : deno fmt --check
16
16
# TODO
17
17
# - run: deno lint
18
-
19
- test :
20
- strategy :
21
- matrix :
22
- platform : [ubuntu-latest, macos-latest]
23
- node-version : ["20.x"]
24
-
25
- runs-on : ${{ matrix.platform }}
18
+ build :
19
+ runs-on : ubuntu-latest
26
20
27
21
steps :
28
22
- uses : actions/checkout@v4
29
- - name : Use Node.js ${{ matrix.node-version }}
23
+ - name : Use Node.js lts/*
30
24
uses : actions/setup-node@v3
31
25
with :
32
- node-version : ${{ matrix.node-version }}
33
- - uses : pnpm/action-setup@v3
34
- with :
35
- version : 8
36
- - uses : oven-sh/setup-bun@v1
37
- - run : corepack enable yarn
26
+ cache : " npm"
27
+ node-version : " lts/*"
38
28
39
- - run : npm i
40
- - run : npm run build --if-present
41
- - run : npm test
29
+ - run : npm ci
30
+ - run : node --run build
42
31
43
- test-win :
32
+ test :
44
33
strategy :
34
+ fail-fast : false # prevent a failure in other versions run cancelling others
45
35
matrix :
46
- platform : [windows-latest]
47
- node-version : ["20 .x"]
36
+ platform : [ubuntu-latest, macos-latest, windows-latest]
37
+ node-version : ["22.x", "24 .x"]
48
38
49
39
runs-on : ${{ matrix.platform }}
50
40
@@ -53,12 +43,13 @@ jobs:
53
43
- name : Use Node.js ${{ matrix.node-version }}
54
44
uses : actions/setup-node@v3
55
45
with :
46
+ cache : " npm"
56
47
node-version : ${{ matrix.node-version }}
57
48
- uses : pnpm/action-setup@v3
58
49
with :
59
50
version : 8
51
+ - uses : oven-sh/setup-bun@v1
60
52
- run : corepack enable yarn
61
53
62
- - run : npm i
63
- - run : npm run build --if-present
64
- - run : npm test
54
+ - run : npm ci
55
+ - run : node --run test
0 commit comments