Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
killagu committed Feb 19, 2024
1 parent 9208d7a commit b73b0ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest, macos-latest'
version: '14, 16, 18'
version: '14, 16, 18, 20'
2 changes: 2 additions & 0 deletions test/lib/cmd/dev.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const coffee = require('coffee');
const net = require('net');
const mm = require('mm');
const detect = require('detect-port');
const version = Number(process.version.substring(1, 3));

describe('test/lib/cmd/dev.test.js', () => {
const eggBin = require.resolve('../../../bin/egg-bin.js');
Expand Down Expand Up @@ -177,6 +178,7 @@ describe('test/lib/cmd/dev.test.js', () => {
});

it('should support egg.revert', () => {
if (version < 18) return;
mm(process.env, 'NODE_ENV', 'development');
return coffee.fork(eggBin, [ 'dev' ], {
cwd: path.join(__dirname, '../../fixtures/egg-revert'),
Expand Down
2 changes: 2 additions & 0 deletions test/lib/cmd/test.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const mm = require('mm');
const assert = require('assert');
const changed = require('jest-changed-files');
const Command = require('../../../lib/cmd/test');
const version = Number(process.version.substring(1, 3));

describe('test/lib/cmd/test.test.js', () => {
const eggBin = require.resolve('../../../bin/egg-bin.js');
Expand Down Expand Up @@ -302,6 +303,7 @@ describe('test/lib/cmd/test.test.js', () => {
});

it('should support egg.revert', () => {
if (version < 18) return;
return coffee.fork(eggBin, [ 'test' ], {
cwd: path.join(__dirname, '../../fixtures/egg-revert'),
})
Expand Down

0 comments on commit b73b0ec

Please sign in to comment.