This commit is contained in:
Elio Bischof
2025-06-24 05:02:51 +02:00
parent fd26025969
commit 819c8fe5fa
13 changed files with 34 additions and 59 deletions

View File

@@ -1,29 +0,0 @@
.git
.DS_Store
node_modules
.turbo
*.log
.next
dist
dist-ssr
*.local
.env
.cache
server/dist
public/dist
.vscode
.idea
.vercel
.env*.local
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/out
/docker
Makefile
docker-bake.hcl
**/*.md
**/*.gitignore
.git

View File

@@ -4,14 +4,12 @@ on:
issues:
types:
- opened
pull_request_target:
types:
- opened
jobs:
add-to-project:
name: Add issue and community pr to project
runs-on: ubuntu-latest
if: github.repository_owner == 'zitadel'
steps:
- name: add issue
uses: actions/add-to-project@v1.0.2

View File

@@ -2,7 +2,6 @@ name: Quality
on:
push:
pull_request:
pull_request_target:
workflow_dispatch:
inputs:
force:
@@ -18,8 +17,7 @@ jobs:
name: Ensure Quality
if: github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && github.repository_owner != 'zitadel') ||
(github.event_name == 'pull_request' && github.repository_owner != 'zitadel') ||
(github.event_name == 'pull_request_target' && github.repository_owner != 'zitadel')
(github.event_name == 'pull_request' && github.repository_owner != 'zitadel')
runs-on: ubuntu-22.04
timeout-minutes: 30
permissions:

View File

@@ -74,14 +74,5 @@ export default defineConfig({
// name: 'Google Chrome',
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
// },
],
/* Run local dev server before starting the tests */
/* webServer: {
command: "pnpm start:built",
url: process.env.LOGIN_BASE_URL || "http://127.0.0.1:3000",
reuseExistingServer: !!process.env.LOGIN_BASE_URL,
timeout: 5 * 60_000,
},*/
]
});

View File

@@ -14,7 +14,7 @@ export const config = {
};
export async function middleware(request: NextRequest) {
// escape proxy if the environment is NOT setup for multitenancy
// escape proxy if the environment is setup for multitenancy
if (!process.env.ZITADEL_API_URL || !process.env.ZITADEL_SERVICE_USER_TOKEN) {
return NextResponse.next();
}

View File

@@ -1,3 +1,7 @@
variable "LOGIN_DIR" {
default = "./"
}
variable "DOCKERFILES_DIR" {
default = "dockerfiles/"
}
@@ -75,7 +79,7 @@ variable "LOGIN_CORE_MOCK_TAG" {
}
target "login-core-mock" {
context = "/apps/login-test-integration/core-mock"
context = "${LOGIN_DIR}apps/login-test-integration/core-mock"
contexts = {
protos = "target:proto-files"
}

View File

@@ -1,6 +1,5 @@
FROM typescript-proto-client AS login-client
COPY packages/zitadel-tsconfig packages/zitadel-tsconfig
COPY packages/zitadel-proto packages/zitadel-proto
COPY packages/zitadel-client/package.json ./packages/zitadel-client/
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
pnpm install --frozen-lockfile --workspace-root --filter ./packages/zitadel-client

View File

@@ -0,0 +1,11 @@
*
!packages/zitadel-client
packages/zitadel-client/dist
!packages/zitadel-tsconfig
**/*.md
**/*.png
**/node_modules
**/.turbo

View File

@@ -0,0 +1,13 @@
*
!apps/login
apps/login/.next
apps/login/dist
!scripts/healthcheck.js
!packages/zitadel-tailwind-config
**/*.md
**/*.png
**/node_modules
**/.turbo

View File

@@ -1,4 +0,0 @@
src/proto
node_modules
dist
.turbo

View File

@@ -1,5 +0,0 @@
zitadel
google
protoc-gen-openapiv2
validate
node_modules

View File

@@ -3,7 +3,7 @@
"tasks": {
"generate": {
"outputs": ["zitadel/**"],
"cache": true
"cache": false
}
}
}

View File

@@ -1 +0,0 @@
run_or_skip.sh