From 8b0294fd9b4cb99b453de4828ffa03be0ce24390 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Thu, 14 Nov 2024 09:33:49 +0100 Subject: [PATCH] ci: remove pre-commit stage and include Go pre-commit template Removes the pre-commit stage from the CI pipeline to streamline the build process. Includes a new template for Go pre-commit checks to enforce code quality and maintainability standards. --- .gitlab-ci.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 74f85ea..352db0f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 stages: - build @@ -11,20 +13,6 @@ variables: image: buildtool/build-tools:${BUILDTOOLS_VERSION} -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 - build: stage: build services: -- 2.52.0