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