mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 04:37:31 +00:00
cache compose tests
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -60,7 +60,7 @@ jobs:
|
|||||||
- run: make login-quality
|
- run: make login-quality
|
||||||
env:
|
env:
|
||||||
# latest if branch is main, otherwise image version which is the pull request number
|
# latest if branch is main, otherwise image version which is the pull request number
|
||||||
BAKE_CLI: depot bake --file docker-bake.hcl --file docker-bake-ci.hcl --file ./apps/login-test-acceptance/docker-compose.yaml --file ./apps/login-test-acceptance/docker-compose-ci.yaml
|
BAKE_CLI: depot bake
|
||||||
DEPOT_PROJECT_ID: jp837jn3fm
|
DEPOT_PROJECT_ID: jp837jn3fm
|
||||||
REF_TAG: ${{ github.ref == 'refs/heads/main' && 'latest' || fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
|
REF_TAG: ${{ github.ref == 'refs/heads/main' && 'latest' || fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
|
||||||
- name: Save Run Caches
|
- name: Save Run Caches
|
||||||
|
14
Makefile
14
Makefile
@@ -1,7 +1,9 @@
|
|||||||
XDG_CACHE_HOME ?= $(HOME)/.cache
|
XDG_CACHE_HOME ?= $(HOME)/.cache
|
||||||
export CACHE_DIR ?= $(XDG_CACHE_HOME)/zitadel-make
|
export CACHE_DIR ?= $(XDG_CACHE_HOME)/zitadel-make
|
||||||
|
|
||||||
export BAKE_CLI ?= docker buildx bake --file ./docker-bake.hcl --file ./apps/login-test-acceptance/docker-compose.yaml
|
export BAKE_CLI ?= docker buildx bake
|
||||||
|
BAKE_CLI_WITH_COMMON_ARGS := $(BAKE_CLI) --file ./docker-bake.hcl --file ./apps/login-test-acceptance/docker-compose.yaml
|
||||||
|
|
||||||
export COMPOSE_BAKE=true
|
export COMPOSE_BAKE=true
|
||||||
|
|
||||||
export LOGIN_TEST_ACCEPTANCE_BUILD_CONTEXT := apps/login-test-acceptance
|
export LOGIN_TEST_ACCEPTANCE_BUILD_CONTEXT := apps/login-test-acceptance
|
||||||
@@ -37,13 +39,13 @@ login-help:
|
|||||||
@echo " clean-run-caches - Remove all run caches."
|
@echo " clean-run-caches - Remove all run caches."
|
||||||
|
|
||||||
login-lint:
|
login-lint:
|
||||||
$(BAKE_CLI) login-lint
|
$(BAKE_CLI_WITH_COMMON_ARGS) login-lint
|
||||||
|
|
||||||
login-test-unit:
|
login-test-unit:
|
||||||
$(BAKE_CLI) login-test-unit
|
$(BAKE_CLI_WITH_COMMON_ARGS) login-test-unit
|
||||||
|
|
||||||
login-test-integration-build:
|
login-test-integration-build:
|
||||||
$(BAKE_CLI) core-mock login-test-integration
|
$(BAKE_CLI_WITH_COMMON_ARGS) core-mock login-test-integration
|
||||||
|
|
||||||
login-test-integration-run: login-test-integration-cleanup
|
login-test-integration-run: login-test-integration-cleanup
|
||||||
docker compose --file ./apps/login-test-integration/docker-compose.yaml run --rm integration
|
docker compose --file ./apps/login-test-integration/docker-compose.yaml run --rm integration
|
||||||
@@ -59,7 +61,7 @@ login-test-integration: login-standalone-build login-test-integration-build
|
|||||||
$(LOGIN_TEST_INTEGRATION_TAG)"
|
$(LOGIN_TEST_INTEGRATION_TAG)"
|
||||||
|
|
||||||
login-test-acceptance-build: login-standalone-build
|
login-test-acceptance-build: login-standalone-build
|
||||||
$(BAKE_CLI) setup sink oidcrp samlsp login-test-acceptance
|
$(BAKE_CLI_WITH_COMMON_ARGS) --load setup sink oidcrp samlsp login-test-acceptance
|
||||||
|
|
||||||
login-test-acceptance-run: login-test-acceptance-cleanup
|
login-test-acceptance-run: login-test-acceptance-cleanup
|
||||||
docker compose --file ./apps/login-test-acceptance/docker-compose.yaml run --rm --service-ports acceptance
|
docker compose --file ./apps/login-test-acceptance/docker-compose.yaml run --rm --service-ports acceptance
|
||||||
@@ -87,7 +89,7 @@ login-quality: login-lint login-test-integration login-test-acceptance
|
|||||||
|
|
||||||
.PHONY: login-standalone-build
|
.PHONY: login-standalone-build
|
||||||
login-standalone-build:
|
login-standalone-build:
|
||||||
$(BAKE_CLI) login-standalone
|
$(BAKE_CLI_WITH_COMMON_ARGS) login-standalone
|
||||||
|
|
||||||
.PHONY: clean-run-caches
|
.PHONY: clean-run-caches
|
||||||
clean-run-caches:
|
clean-run-caches:
|
||||||
|
Reference in New Issue
Block a user