mirror of https://github.com/webpack/webpack.git
ci: fix
This commit is contained in:
parent
9333c3eb4b
commit
47c3c168b1
|
@ -24,12 +24,20 @@ jobs:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
cache: "yarn"
|
cache: "yarn"
|
||||||
- run: yarn --frozen-lockfile
|
- run: yarn --frozen-lockfile
|
||||||
- uses: actions/cache@v4
|
- name: Cache prettier result
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ./node_modules/.cache/prettier/.prettier-cache
|
||||||
|
key: lint-prettier-${{ runner.os }}-node-${{ hashFiles('**/yarn.lock', '**/.prettierrc.js') }}
|
||||||
|
restore-keys: lint-prettier-
|
||||||
|
- name: Cache eslint result
|
||||||
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: .eslintcache
|
path: .eslintcache
|
||||||
key: lint-eslint-${{ runner.os }}-node-${{ hashFiles('**/yarn.lock', '**/.eslintrc.js') }}
|
key: lint-eslint-${{ runner.os }}-node-${{ hashFiles('**/yarn.lock', '**/.eslintrc.js') }}
|
||||||
restore-keys: lint-eslint-
|
restore-keys: lint-eslint-
|
||||||
- uses: actions/cache@v4
|
- name: Cache cspell result
|
||||||
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: .cspellcache
|
path: .cspellcache
|
||||||
key: lint-cspell-${{ runner.os }}-node-${{ hashFiles('**/yarn.lock', '**/cspell.json') }}
|
key: lint-cspell-${{ runner.os }}-node-${{ hashFiles('**/yarn.lock', '**/cspell.json') }}
|
||||||
|
@ -138,11 +146,11 @@ jobs:
|
||||||
cache: "yarn"
|
cache: "yarn"
|
||||||
# Install old `jest` version and deps for legacy node versions
|
# Install old `jest` version and deps for legacy node versions
|
||||||
- run: |
|
- run: |
|
||||||
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 husky@^8.0.3 lint-staged@^13.2.1 --ignore-engines
|
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 husky@^8.0.3 lint-staged@^13.2.1 cspell@^6.31.1 --ignore-engines
|
||||||
yarn --frozen-lockfile --ignore-engines
|
yarn --frozen-lockfile --ignore-engines
|
||||||
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
|
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
|
||||||
- run: |
|
- run: |
|
||||||
yarn upgrade eslint-plugin-jsdoc@^47.0.0 husky@^8.0.3 lint-staged@^13.2.1
|
yarn upgrade eslint-plugin-jsdoc@^47.0.0 husky@^8.0.3 lint-staged@^13.2.1 cspell@^6.31.1
|
||||||
yarn --frozen-lockfile
|
yarn --frozen-lockfile
|
||||||
if: matrix.node-version == '16.x'
|
if: matrix.node-version == '16.x'
|
||||||
# Install main version of our deps
|
# Install main version of our deps
|
||||||
|
|
|
@ -160,7 +160,7 @@
|
||||||
"special-lint-fix": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/format-schemas --write && node tooling/generate-runtime-code.js --write && node tooling/generate-wasm-code.js --write && node node_modules/tooling/format-file-header --write && node node_modules/tooling/compile-to-definitions --write && node node_modules/tooling/precompile-schemas --write && node node_modules/tooling/generate-types --no-template-literals --write",
|
"special-lint-fix": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/format-schemas --write && node tooling/generate-runtime-code.js --write && node tooling/generate-wasm-code.js --write && node node_modules/tooling/format-file-header --write && node node_modules/tooling/compile-to-definitions --write && node node_modules/tooling/precompile-schemas --write && node node_modules/tooling/generate-types --no-template-literals --write",
|
||||||
"fix": "yarn code-lint --fix && yarn special-lint-fix && yarn pretty-lint-fix",
|
"fix": "yarn code-lint --fix && yarn special-lint-fix && yarn pretty-lint-fix",
|
||||||
"prepare": "husky",
|
"prepare": "husky",
|
||||||
"pretty-lint-base": "node node_modules/prettier/bin/prettier.cjs --cache .",
|
"pretty-lint-base": "node node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .",
|
||||||
"pretty-lint-fix": "yarn pretty-lint-base --loglevel warn --write",
|
"pretty-lint-fix": "yarn pretty-lint-base --loglevel warn --write",
|
||||||
"pretty-lint": "yarn pretty-lint-base --check",
|
"pretty-lint": "yarn pretty-lint-base --check",
|
||||||
"yarn-lint": "yarn-deduplicate --fail --list -s highest yarn.lock",
|
"yarn-lint": "yarn-deduplicate --fail --list -s highest yarn.lock",
|
||||||
|
|
Loading…
Reference in New Issue