ci: Fix eslint cache (#22696)

This commit is contained in:
Sergei Zharinov 2023-06-12 14:38:43 +03:00 committed by GitHub
parent a2198b8af7
commit a97cfc7f41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -161,11 +161,11 @@ jobs:
- name: Cache eslint
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: .eslintcache
path: .cache/eslint
key: eslint-cache
- name: Lint
run: yarn eslint -f gha
run: yarn -s eslint-ci
lint-prettier:
needs: [setup]

View file

@ -17,8 +17,9 @@
"debug": "cross-env NODE_OPTIONS=--inspect-brk ts-node lib/renovate.ts",
"doc-fix": "run-s markdown-lint-fix prettier-fix",
"doc-fence-check": "node tools/check-fenced-code.mjs",
"eslint": "eslint . --cache --report-unused-disable-directives",
"eslint-fix": "eslint --cache --fix . --report-unused-disable-directives",
"eslint": "eslint . --cache --cache-location .cache/eslint --report-unused-disable-directives",
"eslint-fix": "eslint --cache --cache-location .cache/eslint --fix . --report-unused-disable-directives",
"eslint-ci": "eslint . --cache --cache-strategy content --cache-location .cache/eslint --format gha",
"generate": "run-s generate:*",
"generate:imports": "node tools/generate-imports.mjs",
"git-check": "node tools/check-git-version.mjs",