Skip to content

Commit

Permalink
ci: upgrade corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Feb 11, 2025
1 parent f7c9dc8 commit aa5466f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ jobs:
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- uses: oven-sh/setup-bun@v1
- name: upgrade corepack
run: npm install -g corepack@latest
- name: setup pnpm/yarn
run: corepack enable
shell: bash
- name: Install Deno
uses: denoland/setup-deno@v1
with:
Expand Down Expand Up @@ -128,8 +129,14 @@ jobs:
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: setup pnpm/yarn
run: corepack enable
shell: bash
run: |
$Env:Path
corepack --version
which corepack
npm install -g corepack --force
corepack --version
which corepack
$Env:Path
- name: Install Deno
uses: denoland/setup-deno@v1
with:
Expand Down
12 changes: 12 additions & 0 deletions tests/prepare.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ const promises = fixtures.map((fixture) =>
callback()
},
})

{
console.log(`[${fixture}] corepack --version`)
const output = execaCommand('corepack --version', {
cwd,
stdio: 'pipe',
env: { ...process.env, FORCE_COLOR: '1' },
})
output.stdout?.pipe(addPrefix).pipe(process.stdout)
output.stderr?.pipe(addPrefix).pipe(process.stderr)
}

console.log(`[${fixture}] Running \`${cmd}\`...`)
const output = execaCommand(cmd, {
cwd,
Expand Down

0 comments on commit aa5466f

Please sign in to comment.