Skip to content

Commit

Permalink
run ci on node 22
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Apr 27, 2024
1 parent 87cfbe7 commit f64c271
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
contents: read
strategy:
matrix:
node-version: [14, 16, 18, 20]
node-version: [18, 20, 22]
os: [macos-latest, ubuntu-latest, windows-latest]
exclude:
- os: windows-latest
Expand Down
1 change: 0 additions & 1 deletion lib/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ process.once('exit', exitCode => {
process.exit(exitCode)
return
}

if (destination?.writableNeedDrain && !destination?.writableEnded) {
parentPort.postMessage({
code: 'WARNING',
Expand Down
2 changes: 2 additions & 0 deletions test/pkg/pkg.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ test('worker test when packaged into executable using pkg', async (t) => {
// package the app into several node versions, check config for more info
const filePath = `${join(__dirname, packageName)}.js`
const configPath = join(__dirname, 'pkg.config.json')
process.env.NODE_OPTIONS ||= ''
process.env.NODE_OPTIONS = '--no-warnings'
const { stderr } = await exec(`npx pkg ${filePath} --config ${configPath}`)

// there should be no error when packaging
Expand Down

0 comments on commit f64c271

Please sign in to comment.