mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
ci(lint): add .pre-commit cache for pre-commit
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
fbb3e052fe
commit
929bb756a8
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ cache:
|
|||
# For some reason Gitlab CI only supports storing cache/artifacts in a path relative to the build directory
|
||||
- .pkg-cache
|
||||
- .venv
|
||||
- .pre-commit
|
||||
|
||||
variables:
|
||||
AUR_CONFIG: conf/config # Default MySQL config setup in before_script.
|
||||
|
@ -23,6 +24,7 @@ lint:
|
|||
script:
|
||||
# https://github.com/pre-commit/pre-commit/issues/2178#issuecomment-1002163763
|
||||
- export SETUPTOOLS_USE_DISTUTILS=stdlib
|
||||
- export XDG_CACHE_HOME=.pre-commit
|
||||
- pre-commit run -a
|
||||
|
||||
test:
|
||||
|
|
Loading…
Add table
Reference in a new issue