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 f7892a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
16 changes: 14 additions & 2 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 @@ -127,8 +128,19 @@ jobs:
node-version: '18.x'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Use npm global on windows
if: runner.os == 'Windows'
run: |
echo "$(npm config get prefix)" >> "$GITHUB_PATH"
shell: bash
- name: setup pnpm/yarn
run: corepack enable
run: |
corepack --version
which corepack
npm install -g corepack --force
corepack --version
which corepack
npm list -g
shell: bash
- name: Install Deno
uses: denoland/setup-deno@v1
Expand Down
1 change: 1 addition & 0 deletions tests/prepare.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const promises = fixtures.map((fixture) =>
callback()
},
})

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

0 comments on commit f7892a9

Please sign in to comment.