a35fb56d45
This change introduces GitLab CI configurations for running pre-commit hooks on both Node and Go projects. It sets up the pre-commit environment, ensures necessary dependencies are installed, and runs pre-commit checks on all files to maintain code quality and consistency. This automation helps to catch issues early in the development process.
14 lines
340 B
YAML
14 lines
340 B
YAML
run-pre-commit:
|
|
stage: .pre
|
|
image: unbound/pre-commit@sha256:596abf501d5ac878534b76f19d19ec5c952f1f362ad92d611172072ef5d483d5
|
|
variables:
|
|
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
|
|
cache:
|
|
- key:
|
|
files:
|
|
- .pre-commit-config.yaml
|
|
paths:
|
|
- ${PRE_COMMIT_HOME}
|
|
script:
|
|
- pre-commit run --all-files
|