run-pre-commit: stage: .pre image: unbound/pre-commit-node:v0.0.23@sha256:92067d332661372c236e272664d2369a9cfcf31937ed1ae05212d9f27a277025 variables: PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit cache: - key: files: - .pre-commit-config.yaml paths: - ${PRE_COMMIT_HOME} before_script: - npm ci --no-progress script: - pre-commit run --all-files