Skip to content
Snippets Groups Projects
Commit 16a6b822 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

ci: cache pre-commit environment

parent 486ccc7a
No related branches found
No related tags found
1 merge request!61Add pre-commit hooks
......@@ -39,6 +39,8 @@ Check licenses:
interruptible: true
Check style:
variables:
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/pre-commit
before_script:
- apk add git pre-commit
script:
......@@ -50,6 +52,12 @@ Check style:
when: manual
- when: always
interruptible: true
cache:
key:
files:
- .pre-commit-config.yaml
paths:
- ${PRE_COMMIT_HOME}
include:
- project: "anw_dienste/ci-templates"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment