Skip to content

Commit e6e8614

Browse files
committed
ci: upgrade corepack
1 parent f7c9dc8 commit e6e8614

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/run-tests.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ jobs:
5959
cache: 'npm'
6060
cache-dependency-path: '**/package-lock.json'
6161
- uses: oven-sh/setup-bun@v1
62+
- name: upgrade corepack
63+
run: npm install -g corepack@latest
6264
- name: setup pnpm/yarn
6365
run: corepack enable
64-
shell: bash
6566
- name: Install Deno
6667
uses: denoland/setup-deno@v1
6768
with:
@@ -127,9 +128,20 @@ jobs:
127128
node-version: '18.x'
128129
cache: 'npm'
129130
cache-dependency-path: '**/package-lock.json'
131+
- name: Use npm global on windows
132+
if: runner.os == 'Windows'
133+
run: |
134+
$Env:Path
135+
echo "$(npm config get prefix)" >> "$GITHUB_PATH"
136+
$Env:Path
130137
- name: setup pnpm/yarn
131-
run: corepack enable
132-
shell: bash
138+
run: |
139+
corepack --version
140+
which corepack
141+
npm install -g corepack --force
142+
npm list -g
143+
corepack --version
144+
which corepack
133145
- name: Install Deno
134146
uses: denoland/setup-deno@v1
135147
with:

tests/prepare.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const promises = fixtures.map((fixture) =>
7070
callback()
7171
},
7272
})
73+
7374
console.log(`[${fixture}] Running \`${cmd}\`...`)
7475
const output = execaCommand(cmd, {
7576
cwd,

0 commit comments

Comments
 (0)