ci: add local module to pre-commit config

This commit is contained in:
2023-01-13 09:47:39 +01:00
parent dcbdef35cf
commit dee3bb5d60
2 changed files with 11 additions and 15 deletions
+1 -6
View File
@@ -9,7 +9,7 @@ stages:
run-pre-commit:
stage: .pre
image: golang:1.19
image: unbound/pre-commit
variables:
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
cache:
@@ -18,11 +18,6 @@ run-pre-commit:
- .pre-commit-config.yaml
paths:
- ${PRE_COMMIT_HOME}
before_script:
- apt update && apt install -y python3 python3-pip ruby git
- go install github.com/lietu/go-pre-commit@latest
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.49.0
- pip install pre-commit
script:
- pre-commit run --all-files