From 28790ef92ef4c9ea1a9f4175f884448bed1e4d70 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Mon, 13 May 2024 14:36:46 +0200 Subject: [PATCH] Skip pkg test with PNPM Signed-off-by: Matteo Collina --- .github/workflows/package-manager-ci.yml | 2 ++ test/pkg/pkg.test.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package-manager-ci.yml b/.github/workflows/package-manager-ci.yml index cf2fe8dad..b76806506 100644 --- a/.github/workflows/package-manager-ci.yml +++ b/.github/workflows/package-manager-ci.yml @@ -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 }} diff --git a/test/pkg/pkg.test.js b/test/pkg/pkg.test.js index 1def2f897..c8abcb61c 100644 --- a/test/pkg/pkg.test.js +++ b/test/pkg/pkg.test.js @@ -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