Skip to content

Commit c12c3a9

Browse files
authored
chore: run CI on latest Node.js (#195)
1 parent 538e1b3 commit c12c3a9

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/release-please.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
if: ${{ steps.release.outputs.release_created }}
2323
- uses: actions/setup-node@v2
2424
with:
25-
node-version: '15'
25+
node-version: '*'
26+
check-latest: true
2627
registry-url: 'https://registry.npmjs.org'
2728
if: ${{ steps.release.outputs.release_created }}
2829
- run: npm publish

.github/workflows/workflow.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, macOS-latest, windows-latest]
16-
node-version: [15.x]
16+
node-version: ['*']
1717
fail-fast: false
1818
steps:
1919
- name: Git checkout
@@ -22,11 +22,12 @@ jobs:
2222
uses: actions/setup-node@v2
2323
with:
2424
node-version: ${{ matrix.node-version }}
25+
check-latest: true
2526
- name: Install dependencies
2627
run: npm ci
2728
- name: Linting
2829
run: npm run format:ci
29-
if: "${{ matrix.node-version == '15.x' }}"
30+
if: "${{ matrix.node-version == '*' }}"
3031
- name: Tests
3132
run: npm run test:ci
3233
- name: Get test coverage flags

test/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const TEST_FILE = `${__dirname}/fixtures/_valid.js`
77
test('Smoke test', async (t) => {
88
const { exitCode, stdout, stderr } = await execa('eslint', [TEST_FILE, '--config', ESLINT_CONFIG], {
99
preferLocal: true,
10+
// @todo remove once https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/315 is merged and released
11+
env: { NODE_OPTIONS: '--no-deprecation' },
1012
})
1113
t.is(exitCode, 0)
1214
t.is(stdout.trim(), '')

0 commit comments

Comments
 (0)