Skip to content

Commit 1fcc825

Browse files
chore: use node native ts support (#127)
* setup: use native node ts * fix: fmt * fix * fix __dirname * fix * Update ci.yml * fix win test * fix win ? * improve coverage repport * fix test env * ??? * Update test_utils.ts * fix fmt * Update test_utils.ts * Update test_utils.ts * Update commands.test.ts
1 parent c1f4938 commit 1fcc825

17 files changed

+284
-1265
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,26 @@ 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:
34+
fail-fast: false # prevent a failure in other versions run cancelling others
4535
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"]
4838

4939
runs-on: ${{ matrix.platform }}
5040

@@ -53,12 +43,13 @@ jobs:
5343
- name: Use Node.js ${{ matrix.node-version }}
5444
uses: actions/setup-node@v3
5545
with:
46+
cache: "npm"
5647
node-version: ${{ matrix.node-version }}
5748
- uses: pnpm/action-setup@v3
5849
with:
5950
version: 8
51+
- uses: oven-sh/setup-bun@v1
6052
- run: corepack enable yarn
6153

62-
- run: npm i
63-
- run: npm run build --if-present
64-
- run: npm test
54+
- run: npm ci
55+
- run: node --run test

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
# Setup .npmrc file to publish to npm
1111
- uses: actions/setup-node@v3
1212
with:
13-
node-version: "20.x"
13+
node-version: "22.x"
1414
registry-url: "https://registry.npmjs.org"
1515
- run: npm ci
1616
- run: npm publish

0 commit comments

Comments
 (0)