chore(ci): remove pre-commit job and include new template
Removes the deprecated pre-commit job from the CI configuration. Includes a new template for Go pre-commit checks, ensuring consistent code quality and streamlined commit workflows.
This commit is contained in:
+2
-14
@@ -2,6 +2,8 @@ include:
|
||||
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
||||
- project: unboundsoftware/ci-templates
|
||||
file: Release.gitlab-ci.yml
|
||||
- project: unboundsoftware/ci-templates
|
||||
file: Pre-Commit-Go.gitlab-ci.yml
|
||||
|
||||
image: golang:1.23.3@sha256:b2ca38170893394183f940a7f988bf15c4112a4ddb73214941fe4d08a09f9329
|
||||
|
||||
@@ -9,20 +11,6 @@ stages:
|
||||
- deps
|
||||
- test
|
||||
|
||||
run-pre-commit:
|
||||
stage: .pre
|
||||
image: unbound/pre-commit@sha256:e78425cf8897cbf9c572b370bb8106f2c111d0df5e247966f41ae8e3e27ffdf9
|
||||
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
|
||||
|
||||
deps:
|
||||
stage: deps
|
||||
script:
|
||||
|
||||
Reference in New Issue
Block a user