Skip to content

Commit 97895af

Browse files
committed
build: fix test ci checkout
1 parent 1b51488 commit 97895af

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
with:
2121
egress-policy: audit
2222

23+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
24+
2325
- name: Use Node.js ${{ matrix.node-version }}
2426
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2527
with:
@@ -31,4 +33,8 @@ jobs:
3133
- name: Install dependencies
3234
run: npm ci
3335
- name: npm test
36+
if: matrix.node-version != '20.x'
3437
run: npm run node:test
38+
- name: npm test with amaro
39+
if: matrix.node-version == '20.x'
40+
run: NODE_OPTIONS="--import=amaro/strip" npm run node:test

package-lock.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
},
99
"devDependencies": {
1010
"@types/node": "^24.10.1"
11+
},
12+
"dependencies": {
13+
"amaro": "^1.1.5"
1114
}
1215
}

0 commit comments

Comments
 (0)