Skip to content

Commit

Permalink
Skip pkg test with PNPM
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed May 13, 2024
1 parent 03668e5 commit 28790ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/package-manager-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- package-manager-load
permissions:
contents: read
env:
PNPM_CI: true
jobs:
pnpm:
name: pnpm package manager on ${{ matrix.node-version }} ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion test/pkg/pkg.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const exec = promisify(require('child_process').exec)
*/
const deprecationWarningRegex = /^\(\w+:\d+\)\s\[[\w|\d]+\]\sDeprecationWarning: The `punycode` module is deprecated\.\s+Please use a userland alternative instead\.\s+\(Use `node --trace-deprecation \.\.\.` to show where the warning was created\)\s+$/

test('worker test when packaged into executable using pkg', async (t) => {
test('worker test when packaged into executable using pkg', { skip: !!process.env.PNPM_CI }, async (t) => {
const packageName = 'index'

// package the app into several node versions, check config for more info
Expand Down

0 comments on commit 28790ef

Please sign in to comment.