ci(front): speedup linting with eslint by using cache

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2503>
environments/review-docs-merge-hoc7bt/deployments/18064
Kasper Seweryn 2023-06-19 23:24:49 +02:00
rodzic 5168817dc9
commit f0693c7d4f
3 zmienionych plików z 7 dodań i 1 usunięć

3
.gitignore vendored
Wyświetl plik

@ -97,3 +97,6 @@ _build
# Docker
docker-bake.*.json
metadata.json
# Eslint
.eslintcache

Wyświetl plik

@ -30,6 +30,9 @@ variables:
prefix: front-node_modules
files: [front/yarn.lock]
paths: [front/node_modules]
- key:
prefix: front-lint
files: [front/.eslintcache]
# Cache for api related jobs
# Include the python version to prevent loosing caches in the test matrix

Wyświetl plik

@ -11,7 +11,7 @@
"serve": "vite preview",
"test": "vitest run",
"test:unit": "vitest run --coverage",
"lint": "eslint --ext .ts,.js,.vue,.json,.html src test public/embed.html",
"lint": "eslint --cache --cache-strategy content --ext .ts,.js,.vue,.json,.html src test public/embed.html",
"lint:tsc": "vue-tsc --noEmit",
"fix-fomantic-css": "scripts/fix-fomantic-css.sh",
"postinstall": "yarn run fix-fomantic-css"