run all in CI

This commit is contained in:
Florian Forster
2025-02-19 17:21:38 +01:00
parent 50904d7914
commit a67aa05646
3 changed files with 12 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ permissions:
jobs:
depot-gh-cache:
timeout-minutes: 20
runs-on: depot-ubuntu-22.04-16
runs-on: depot-ubuntu-22.04-8
steps:
- uses: actions/checkout@v4
with:
@@ -22,6 +22,6 @@ jobs:
with:
source: .
push: false
targets: build, lint ,core-unit
targets: all
no-cache: false
load: false

View File

@@ -4,7 +4,7 @@ ARG GOLANG_CI_VERSION=
RUN apt-get update && apt-get install -y npm && npm install -g sass@${SASS_VERSION}
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v${GOLANG_CI_VERSION}
WORKDIR /app
COPY go.mod go.sum Makefile buf.gen.yaml buf.work.yaml main.go .golangci.yaml ./
COPY go.mod go.sum Makefile buf.gen.yaml buf.work.yaml main.go ./
COPY cmd/ cmd/
COPY internal/ internal/
COPY openapi/ openapi/
@@ -18,6 +18,7 @@ FROM base AS build
RUN make compile_pipeline
FROM base AS lint
COPY .golangci.yaml ./
COPY .git/ ./.git/
RUN make core_lint

View File

@@ -6,6 +6,10 @@ variable "REGISTRY" {
default = "ghcr.io/zitadel"
}
group "all" {
targets = ["build", "output", "lint", "image", "unit"]
}
group "build" {
targets = ["console-build", "core-build"]
}
@@ -22,6 +26,10 @@ group "image" {
targets = ["console-image", "core-image"]
}
group "unit" {
targets = ["core-unit"]
}
target "_console" {
dockerfile = "Dockerfile.console"
context = "."