Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaack committed Oct 9, 2024
1 parent e0daf2d commit 2d73f2e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'pnpm'
- name: install
run: pnpm i
Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 22.9.0
8 changes: 7 additions & 1 deletion src/test/task.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ function test(cmd: string, expectedExitCode?: number) {
})
},
async init() {
let p = await exec(`tsx ./src/cli.ts --config ${fixturesDir}/${cmd}`, {stdio: void 0}).catch(er => er);
let p = await exec(`tsx ./src/cli.ts --config ${fixturesDir}/${cmd}`, {
stdio: void 0,
env: {
...process.env,
DISABLE_V8_COMPILE_CACHE:'1',
},
}).catch((er) => er)
exitCode = p.exitCode;
out = normal(p.stdout + p.stderr)
let snapFile = snapsDir + '/' + cmd.replace(/[^\w-]/g, '_')
Expand Down

0 comments on commit 2d73f2e

Please sign in to comment.