mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
Revert "Remove implicit dependencies"
This commit is contained in:
parent
2d75d42a18
commit
85de046700
6 changed files with 3225 additions and 2197 deletions
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
'eslint-config-prettier'
|
'eslint-config-prettier'
|
||||||
],
|
],
|
||||||
parser: '@typescript-eslint/parser',
|
parser: '@typescript-eslint/parser',
|
||||||
plugins: ['@typescript-eslint', 'eslint-plugin-node', 'eslint-plugin-jest'],
|
plugins: ['@typescript-eslint', 'eslint-plugin-jest'],
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/no-require-imports': 'error',
|
'@typescript-eslint/no-require-imports': 'error',
|
||||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||||
|
@ -28,8 +28,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
'no-control-regex': 'off',
|
'no-control-regex': 'off',
|
||||||
'no-constant-condition': ['error', {checkLoops: false}],
|
'no-constant-condition': ['error', {checkLoops: false}]
|
||||||
'node/no-extraneous-import': 'error'
|
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
|
|
29
.github/workflows/versions.yml
vendored
29
.github/workflows/versions.yml
vendored
|
@ -27,7 +27,34 @@ jobs:
|
||||||
- name: Setup node 11 from dist
|
- name: Setup node 11 from dist
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
node-version: 11
|
node-version: ${{ matrix.node-version }}
|
||||||
|
check-latest: true
|
||||||
|
- if: runner.os != 'Windows'
|
||||||
|
name: Verify node and npm
|
||||||
|
run: |
|
||||||
|
. "$NVM_DIR/nvm.sh"
|
||||||
|
[[ $(nvm version-remote "${{ matrix.node-version }}") =~ ^v([^.]+) ]]
|
||||||
|
__tests__/verify-node.sh "${BASH_REMATCH[1]}"
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
v8-canary-syntax:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
node-version:
|
||||||
|
[
|
||||||
|
'20-v8-canary',
|
||||||
|
'20.0.0-v8-canary',
|
||||||
|
'20.0.0-v8-canary20221101e50e45c9f8'
|
||||||
|
]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Setup Node
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Verify node and npm
|
- name: Verify node and npm
|
||||||
run: __tests__/verify-node.sh 11
|
run: __tests__/verify-node.sh 11
|
||||||
# test old versions which didn't have npm and layout different
|
# test old versions which didn't have npm and layout different
|
||||||
|
|
2709
package-lock.json
generated
2709
package-lock.json
generated
File diff suppressed because it is too large
Load diff
19
package.json
19
package.json
|
@ -35,11 +35,18 @@
|
||||||
"@types/jest": "^24.0.13",
|
"@types/jest": "^24.0.13",
|
||||||
"@types/node": "^12.0.4",
|
"@types/node": "^12.0.4",
|
||||||
"@types/semver": "^6.0.0",
|
"@types/semver": "^6.0.0",
|
||||||
"@zeit/ncc": "^0.21.0",
|
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
||||||
"jest": "^24.9.0",
|
"@typescript-eslint/parser": "^5.54.0",
|
||||||
"jest-circus": "^24.7.1",
|
"@vercel/ncc": "^0.33.4",
|
||||||
"prettier": "^1.19.1",
|
"eslint": "^8.35.0",
|
||||||
"ts-jest": "^24.3.0",
|
"eslint-config-prettier": "^8.6.0",
|
||||||
"typescript": "^3.8.3"
|
"eslint-plugin-jest": "^27.2.1",
|
||||||
|
"eslint-plugin-node": "^11.1.0",
|
||||||
|
"jest": "^27.2.5",
|
||||||
|
"jest-circus": "^27.2.5",
|
||||||
|
"jest-each": "^27.2.5",
|
||||||
|
"prettier": "^2.8.4",
|
||||||
|
"ts-jest": "^27.0.5",
|
||||||
|
"typescript": "^4.2.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue