mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-01 08:57:24 +00:00
test
This commit is contained in:
parent
ac281cc3c1
commit
18a1e89dab
6
.github/workflows/ffo-test.yml
vendored
6
.github/workflows/ffo-test.yml
vendored
@ -20,4 +20,8 @@ jobs:
|
||||
source: .
|
||||
push: false
|
||||
targets: build
|
||||
load: true
|
||||
- uses: docker/bake-action@v6
|
||||
with:
|
||||
source: .
|
||||
push: false
|
||||
targets: lint
|
@ -24,7 +24,8 @@ RUN make core_lint
|
||||
FROM scratch AS output
|
||||
COPY --from=build /app/zitadel .
|
||||
|
||||
FROM base AS unit-test
|
||||
FROM base AS unit
|
||||
COPY .git/ .git/
|
||||
RUN make core_unit_test
|
||||
|
||||
FROM debian:latest AS base-image
|
||||
|
@ -81,30 +81,34 @@ target "core" {
|
||||
name = "core-${tgt}"
|
||||
inherits = ["_core"]
|
||||
matrix = {
|
||||
tgt = ["build", "output", "lint", "image"]
|
||||
tgt = ["build", "output", "lint", "image", "unit"]
|
||||
}
|
||||
output = {
|
||||
"build" = ["type=cacheonly"]
|
||||
"output" = ["type=local,dest=.build/core"]
|
||||
"lint" = ["type=cacheonly"]
|
||||
"unit" = ["type=cacheonly"]
|
||||
"image" = ["type=docker"]
|
||||
}[tgt]
|
||||
tags = {
|
||||
"build" = []
|
||||
"output" = []
|
||||
"lint" = []
|
||||
"unit" = []
|
||||
"image" = ["${REGISTRY}/zitadel:${GITHUB_SHA}"]
|
||||
}[tgt]
|
||||
cache-to = {
|
||||
"build" = ["type=gha,ignore-error=true,mode=max,scope=core-${tgt}"]
|
||||
"output" = ["type=gha,ignore-error=true,mode=max,scope=core-${tgt}"]
|
||||
"lint" = ["type=gha,ignore-error=true,mode=max,scope=core-${tgt}"]
|
||||
"unit" = ["type=gha,ignore-error=true,mode=max,scope=core-${tgt}"]
|
||||
"image" = ["type=gha,ignore-error=true,mode=max,scope=core-${tgt}"]
|
||||
}[tgt]
|
||||
cache-from = {
|
||||
"build" = ["type=gha,scope=core-${tgt}"]
|
||||
"output" = ["type=gha,scope=core-${tgt}"]
|
||||
"lint" = ["type=gha,scope=core-${tgt}"]
|
||||
"unit" = ["type=gha,scope=core-${tgt}"]
|
||||
"image" = ["type=gha,scope=core-${tgt}"]
|
||||
}[tgt]
|
||||
target = tgt
|
||||
|
Loading…
x
Reference in New Issue
Block a user