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.
16 lines
395 B
YAML
16 lines
395 B
YAML
run-pre-commit:
|
|
stage: .pre
|
|
image: unbound/pre-commit-node:v0.0.10@sha256:b2133622f54309b9cab90876f07b73e2e0532ad67d4bc94d8deafc9df7d779aa
|
|
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
|