Skip to content

Commit

Permalink
ci(node): remove eol node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
code-forger committed Jan 7, 2025
1 parent 2d19ea9 commit 1e9fff0
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
tests:
strategy:
matrix:
node: [ '14.x', '16.x', '18.x', '20.x', '22.x' ]
node: [ '18.x', '20.x', '22.x' ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node }} - ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
tests:
strategy:
matrix:
node: [ '14.x', '16.x', '18.x', '20.x', '22.x' ]
node: [ '18.x', '20.x', '22.x' ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node }} - ${{ matrix.os }}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions __tests__/outdated-snapshot-reporter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ describe('OutdatedSnapshotReporter', () => {
}

function runJest(cliArgs, environment = {}) {
const ls = childProcess.spawnSync('ls', ['-la'], {
cwd: tmpDir,
encoding: 'utf-8',
env: { ...process.env, ...environment },
});
console.log(ls);

Check warning on line 65 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 18.x - ubuntu-latest

Unexpected console statement

Check warning on line 65 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 18.x - ubuntu-latest

Unexpected console statement

Check warning on line 65 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 18.x - macos-latest

Unexpected console statement

Check warning on line 65 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 18.x - macos-latest

Unexpected console statement

Check warning on line 65 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 20.x - ubuntu-latest

Unexpected console statement

Check warning on line 65 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 20.x - ubuntu-latest

Unexpected console statement

Check warning on line 65 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 20.x - macos-latest

Unexpected console statement

Check warning on line 65 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 20.x - macos-latest

Unexpected console statement

Check warning on line 65 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 22.x - ubuntu-latest

Unexpected console statement

Check warning on line 65 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 22.x - ubuntu-latest

Unexpected console statement

Check warning on line 65 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 22.x - macos-latest

Unexpected console statement

Check warning on line 65 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 22.x - macos-latest

Unexpected console statement
const ls2 = childProcess.spawnSync('ls', ['-la', path.join(jestImageSnapshotDir, 'node_modules/.bin/')], {
cwd: tmpDir,
encoding: 'utf-8',
env: { ...process.env, ...environment },
});
console.log(ls2);

Check warning on line 71 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 18.x - ubuntu-latest

Unexpected console statement

Check warning on line 71 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 18.x - ubuntu-latest

Unexpected console statement

Check warning on line 71 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 18.x - macos-latest

Unexpected console statement

Check warning on line 71 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 18.x - macos-latest

Unexpected console statement

Check warning on line 71 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 20.x - ubuntu-latest

Unexpected console statement

Check warning on line 71 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 20.x - ubuntu-latest

Unexpected console statement

Check warning on line 71 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 20.x - macos-latest

Unexpected console statement

Check warning on line 71 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 20.x - macos-latest

Unexpected console statement

Check warning on line 71 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 22.x - ubuntu-latest

Unexpected console statement

Check warning on line 71 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 22.x - ubuntu-latest

Unexpected console statement

Check warning on line 71 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 22.x - macos-latest

Unexpected console statement

Check warning on line 71 in __tests__/outdated-snapshot-reporter.spec.js

View workflow job for this annotation

GitHub Actions / Node 22.x - macos-latest

Unexpected console statement
const child = childProcess.spawnSync(jestBinPath, cliArgs, {
cwd: tmpDir,
encoding: 'utf-8',
Expand Down
3 changes: 1 addition & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"eslint-config-amex": "^7.0.0",
"husky": "^4.2.1",
"image-size": "^0.8.3",
"jest": "^29.0.0",
"jest": "^29.7.0",
"jest-snapshot": "^29.0.0",
"lockfile-lint": "^4.14.0",
"mock-spawn": "^0.2.6",
Expand Down Expand Up @@ -106,9 +106,9 @@
"@semantic-release/git",
"@semantic-release/github"
]
},
},
"overrides": {
"eslint-config-amex" : {
"eslint-config-amex": {
"eslint": "$eslint"
}
}
Expand Down

0 comments on commit 1e9fff0

Please sign in to comment.