Skip to content

Commit 8e0e20e

Browse files
committed
[Tests] add NPM_CONFIG_LEGACY_PEER_DEPS to install steps
1 parent 9f1d618 commit 8e0e20e

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/node-4+.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ jobs:
6262
name: 'nvm install ${{ matrix.node-version }} && npm install'
6363
with:
6464
node-version: ${{ matrix.node-version }}
65-
after_install: NPM_CONFIG_LEGACY_PEER_DEPS=true npm install --no-save "eslint@${{ matrix.eslint }}"
65+
after_install: npm install --no-save "eslint@${{ matrix.eslint }}"
6666
skip-ls-check: true
67+
env:
68+
NPM_CONFIG_LEGACY_PEER_DEPS: true
6769
- run: npm run unit-test
6870
- uses: codecov/codecov-action@v1
6971

.github/workflows/node-pretest.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
with:
1414
node-version: 'lts/*'
1515
skip-ls-check: true
16+
env:
17+
NPM_CONFIG_LEGACY_PEER_DEPS: true
1618
- run: npm run pretest
1719

1820
posttest:
@@ -25,4 +27,7 @@ jobs:
2527
with:
2628
node-version: 'lts/*'
2729
skip-ls-check: true
30+
env:
31+
NPM_CONFIG_LEGACY_PEER_DEPS: true
32+
- run: echo 'legacy-peer-deps=true' >> .npmrc
2833
- run: npm run posttest

.github/workflows/readme.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ jobs:
1313
with:
1414
node-version: 'lts/*'
1515
skip-ls-check: true
16+
env:
17+
NPM_CONFIG_LEGACY_PEER_DEPS: true
1618
- run: npm run generate-list-of-rules

0 commit comments

Comments
 (0)