run-pre-commit: stage: .pre image: unbound/pre-commit-node:v0.0.25@sha256:dafb9ad3d4a0b4ad607076ee9f91b598af58cee6a9cb53aa7d5d516945478379 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