mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 16:17:32 +00:00
make login_quality
This commit is contained in:
2
Makefile
2
Makefile
@@ -27,7 +27,7 @@ export LOGIN_TEST_ACCEPTANCE_SAMLIDP_TAG := login-test-acceptance-samlidp:${DOCK
|
||||
export POSTGRES_TAG := postgres:17.0-alpine3.19
|
||||
export GOLANG_TAG := golang:1.24-alpine
|
||||
export ZITADEL_TAG ?= ghcr.io/zitadel/zitadel:latest
|
||||
export CORE_MOCK_TAG := login-core-mock:${DOCKER_METADATA_OUTPUT_VERSION}
|
||||
export LOGIN_CORE_MOCK_TAG := login-core-mock:${DOCKER_METADATA_OUTPUT_VERSION}
|
||||
|
||||
login_help:
|
||||
@echo "Makefile for the login service"
|
||||
|
@@ -5,6 +5,7 @@
|
||||
"scripts": {
|
||||
"dev": "pnpm next dev --turbopack",
|
||||
"test:unit": "pnpm vitest",
|
||||
"test:unit:standalone": "pnpm test:unit",
|
||||
"test:unit:watch": "pnpm test:unit --watch",
|
||||
"lint": "pnpm exec next lint && pnpm exec prettier --check .",
|
||||
"lint:fix": "pnpm exec prettier --write .",
|
||||
|
@@ -14,6 +14,7 @@
|
||||
"test:unit": {
|
||||
"dependsOn": ["@zitadel/client#build"]
|
||||
},
|
||||
"test:unit:standalone": {},
|
||||
"test:watch": {
|
||||
"dependsOn": ["@zitadel/client#build"]
|
||||
}
|
||||
|
@@ -82,7 +82,7 @@ target "login-client" {
|
||||
}
|
||||
|
||||
variable "LOGIN_CORE_MOCK_TAG" {
|
||||
default = "core-mock:local"
|
||||
default = "login-core-mock:local"
|
||||
}
|
||||
|
||||
# the core-mock context must not be overwritten, so we don't prefix it with login-.
|
||||
|
@@ -1,7 +1,8 @@
|
||||
FROM typescript-proto-client AS login-client
|
||||
COPY packages/zitadel-tsconfig packages/zitadel-tsconfig
|
||||
COPY packages/zitadel-client/package.json ./packages/zitadel-client/
|
||||
RUN ls -la
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||
pnpm install --frozen-lockfile --workspace-root --filter ./packages/zitadel-client
|
||||
COPY packages/zitadel-client packages/zitadel-client
|
||||
COPY packages/zitadel-client ./packages/zitadel-client
|
||||
RUN pnpm build:client:standalone
|
||||
|
@@ -3,4 +3,4 @@ COPY apps/login/package.json ./apps/login/
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||
pnpm install --frozen-lockfile --workspace-root --filter ./apps/login
|
||||
COPY apps/login ./apps/login
|
||||
RUN cd apps/login && pnpm test:unit
|
||||
RUN pnpm test:unit:standalone
|
||||
|
@@ -13,6 +13,7 @@
|
||||
"start": "pnpm exec turbo run start",
|
||||
"start:built": "pnpm exec turbo run start:built",
|
||||
"test:unit": "pnpm exec turbo run test:unit -- --passWithNoTests",
|
||||
"test:unit:standalone": "pnpm exec turbo run test:unit:standalone -- --passWithNoTests",
|
||||
"test:integration": "cd apps/login-test-integration && pnpm test:integration",
|
||||
"test:integration:setup": "NODE_ENV=test pnpm exec turbo run test:integration:setup",
|
||||
"test:acceptance": "cd apps/login-test-acceptance && pnpm test:acceptance",
|
||||
|
Reference in New Issue
Block a user