@@ -15,36 +15,25 @@ jobs:
1515 - run : deno fmt --check
1616 # TODO
1717 # - 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
2620
2721 steps :
2822 - uses : actions/checkout@v4
29- - name : Use Node.js ${{ matrix.node-version }}
23+ - name : Use Node.js lts/*
3024 uses : actions/setup-node@v3
3125 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/*"
3828
39- - run : npm i
40- - run : npm run build --if-present
41- - run : npm test
29+ - run : npm ci
30+ - run : node --run build
4231
43- test-win :
32+ test :
4433 strategy :
4534 matrix :
46- platform : [windows-latest]
47- node-version : ["20 .x"]
35+ platform : [ubuntu-latest, macos-latest, windows-latest]
36+ node-version : ["22.x", "24 .x"]
4837
4938 runs-on : ${{ matrix.platform }}
5039
@@ -53,12 +42,13 @@ jobs:
5342 - name : Use Node.js ${{ matrix.node-version }}
5443 uses : actions/setup-node@v3
5544 with :
45+ cache : " npm"
5646 node-version : ${{ matrix.node-version }}
5747 - uses : pnpm/action-setup@v3
5848 with :
5949 version : 8
50+ - uses : oven-sh/setup-bun@v1
6051 - run : corepack enable yarn
6152
62- - run : npm i
63- - run : npm run build --if-present
64- - run : npm test
53+ - run : npm ci
54+ - run : node --run test
0 commit comments