From e175d3c43c378d922956ed41bcba2b94c0cde2ac Mon Sep 17 00:00:00 2001 From: vikingowl Date: Tue, 7 Apr 2026 03:05:11 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20remove=20lint/test=20from=20CI=20?= =?UTF-8?q?=E2=80=94=20handled=20by=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 64 +------------------------------------------------- 1 file changed, 1 insertion(+), 63 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2065665..99d5d7e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -stages: [lint, test, build, docker, deploy] +stages: [docker, deploy] variables: REGISTRY: registry.itsh.dev @@ -7,52 +7,6 @@ variables: # ── Backend ───────────────────────────────────────────────────────────────── -backend:lint: - stage: lint - image: golang:1.26-alpine - variables: - GOPRIVATE: marktvogt.de/* - before_script: - - apk add --no-cache git - - GOTOOLCHAIN=local go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6 - script: - - cd backend && golangci-lint run ./... - rules: - - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - changes: [backend/**/*] - - if: '$CI_COMMIT_BRANCH == "main"' - changes: [backend/**/*] - -backend:test: - stage: test - image: golang:1.26-alpine - variables: - GOPRIVATE: marktvogt.de/* - before_script: - - apk add --no-cache git gcc musl-dev - script: - - cd backend && CGO_ENABLED=1 go test ./... -v -count=1 -race - rules: - - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - changes: [backend/**/*] - - if: '$CI_COMMIT_BRANCH == "main"' - changes: [backend/**/*] - -backend:build: - stage: build - image: golang:1.26-alpine - variables: - GOPRIVATE: marktvogt.de/* - before_script: - - apk add --no-cache git - script: - - cd backend && CGO_ENABLED=0 go build -ldflags="-s -w" -o /dev/null ./cmd/api - rules: - - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - changes: [backend/**/*] - - if: '$CI_COMMIT_BRANCH == "main"' - changes: [backend/**/*] - backend:docker: stage: docker image: docker:27 @@ -95,22 +49,6 @@ backend:deploy: # ── Web ────────────────────────────────────────────────────────────────────── -web:lint: - stage: lint - image: node:25-alpine - variables: - PUBLIC_API_BASE_URL: https://api.marktvogt.de - before_script: - - npm install -g pnpm@10 - - pnpm --dir web install --frozen-lockfile - script: - - cd web && pnpm run format:check && pnpm run lint && pnpm run check - rules: - - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - changes: [web/**/*] - - if: '$CI_COMMIT_BRANCH == "main"' - changes: [web/**/*] - web:docker: stage: docker image: docker:27