chore: remove lint/test from CI — handled by pre-commit hooks

This commit is contained in:
2026-04-07 03:05:11 +02:00
parent ca86001e7b
commit e175d3c43c

View File

@@ -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