Skip to content

Commit 19da173

Browse files
committed
[Tests] run npx ls-engines in tests
1 parent 3504e2b commit 19da173

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.github/workflows/node-4+.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ jobs:
8181
skip-ls-check: ${{ matrix.node-version < 10 && true || false }}
8282
env:
8383
NPM_CONFIG_LEGACY_PEER_DEPS: true
84+
- run: npx ls-engines
85+
if: ${{ matrix.node-version >= 12 }}
8486
- run: npm run unit-test
8587
- uses: codecov/codecov-action@v1
8688

.github/workflows/node-pretest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ jobs:
2727
node-version: 'lts/*'
2828
env:
2929
NPM_CONFIG_LEGACY_PEER_DEPS: true
30+
- run: npx ls-engines
3031
- run: echo 'legacy-peer-deps=true' >> .npmrc
3132
- run: npm run posttest

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"eslint-scope": "^3.7.3",
6666
"espree": "^3.5.4",
6767
"istanbul": "^0.4.5",
68+
"ls-engines": "^0.6.1",
6869
"markdown-magic": "^2.5.2",
6970
"mocha": "^5.2.0",
7071
"sinon": "^7.5.0",

0 commit comments

Comments
 (0)