chore: improve pipeline

This commit is contained in:
Elio Bischof
2023-06-23 15:31:09 +02:00
parent 6119133901
commit 1229433094
4 changed files with 21 additions and 8 deletions

View File

@@ -12,10 +12,11 @@
"test:integration:run": "cypress run --config-file ./cypress/cypress.config.ts --quiet", "test:integration:run": "cypress run --config-file ./cypress/cypress.config.ts --quiet",
"test:integration:open": "cypress open --config-file ./cypress/cypress.config.ts", "test:integration:open": "cypress open --config-file ./cypress/cypress.config.ts",
"mock": "pnpm mock:build && pnpm mock:run", "mock": "pnpm mock:build && pnpm mock:run",
"mock:run": "pnpm mock:destroy && docker run --rm --name zitadel-mock-grpc-server --publish 22220:22220 --publish 22222:22222 zitadel-mock-grpc-server", "mock:run": "pnpm mock:stop && docker run --rm --name zitadel-mock-grpc-server --publish 22220:22220 --publish 22222:22222 zitadel-mock-grpc-server",
"mock:build": "DOCKER_BUILDKIT=1 docker build --tag zitadel-mock-grpc-server ./mock", "mock:build": "DOCKER_BUILDKIT=1 docker build --tag zitadel-mock-grpc-server ./mock",
"mock:build:nocache": "pnpm mock:build --no-cache", "mock:build:nocache": "pnpm mock:build --no-cache",
"mock:destroy": "docker rm --force zitadel-mock-grpc-server 2>/dev/null", "mock:stop": "docker rm --force zitadel-mock-grpc-server 2>/dev/null || true",
"mock:destroy": "docker rmi --force zitadel-mock-grpc-server 2>/dev/null || true",
"lint": "next lint && prettier --check .", "lint": "next lint && prettier --check .",
"lint:fix": "prettier --write .", "lint:fix": "prettier --write .",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
@@ -88,4 +89,4 @@
"typescript": "5.0.4", "typescript": "5.0.4",
"zitadel-tailwind-config": "workspace:*" "zitadel-tailwind-config": "workspace:*"
} }
} }

View File

@@ -8,6 +8,14 @@
"src/proto/**" "src/proto/**"
], ],
"cache": true "cache": true
},
"build": {
"outputs": [
"dist/**"
],
"dependsOn": [
"generate"
]
} }
} }
} }

View File

@@ -8,6 +8,14 @@
"src/proto/**" "src/proto/**"
], ],
"cache": true "cache": true
},
"build": {
"outputs": [
"dist/**"
],
"dependsOn": [
"generate"
]
} }
} }
} }

View File

@@ -4,11 +4,7 @@
"generate": { "generate": {
"cache": true "cache": true
}, },
"build": { "build": {},
"dependsOn": [
"generate"
]
},
"test": {}, "test": {},
"test:unit": {}, "test:unit": {},
"test:integration": {}, "test:integration": {},