forked from baron/baron-sso
코드체크 업데이트
This commit is contained in:
@@ -24,13 +24,19 @@ pull_compose="docker/staging_pull_compose.template.yaml"
|
||||
devfront_vite="devfront/vite.config.ts"
|
||||
orgfront_vite="orgfront/vite.config.ts"
|
||||
adminfront_vite="adminfront/vite.config.ts"
|
||||
adminfront_runtime="adminfront/scripts/runtime-mode.sh"
|
||||
devfront_runtime="devfront/scripts/runtime-mode.sh"
|
||||
orgfront_runtime="orgfront/scripts/runtime-mode.sh"
|
||||
|
||||
for file in \
|
||||
"$staging_pull" \
|
||||
"$pull_compose" \
|
||||
"$adminfront_vite" \
|
||||
"$devfront_vite" \
|
||||
"$orgfront_vite"
|
||||
"$orgfront_vite" \
|
||||
"$adminfront_runtime" \
|
||||
"$devfront_runtime" \
|
||||
"$orgfront_runtime"
|
||||
do
|
||||
if [ ! -f "$file" ]; then
|
||||
echo "missing expected file: $file" >&2
|
||||
@@ -49,6 +55,7 @@ done
|
||||
assert_contains "$staging_pull" 'bash scripts/render_ory_config.sh'
|
||||
assert_contains "$staging_pull" 'chmod -R 777 config/.generated/ory'
|
||||
assert_contains "$staging_pull" 'docker compose -f staging_pull_compose.yaml build --pull'
|
||||
assert_contains "$staging_pull" 'docker compose -f staging_pull_compose.yaml up -d --remove-orphans --renew-anon-volumes'
|
||||
|
||||
assert_contains "$pull_compose" "baron_devfront"
|
||||
assert_contains "$pull_compose" "baron_orgfront"
|
||||
@@ -71,4 +78,11 @@ assert_contains "$orgfront_vite" '"sorg.hmac.kr"'
|
||||
assert_contains "orgfront/biome.json" '".vite"'
|
||||
assert_contains "orgfront/tsconfig.app.json" '"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"]'
|
||||
|
||||
for runtime_script in "$adminfront_runtime" "$devfront_runtime" "$orgfront_runtime"; do
|
||||
assert_contains "$runtime_script" "ensure_frontend_dependencies"
|
||||
assert_contains "$runtime_script" "package-lock.json"
|
||||
assert_contains "$runtime_script" "npm ci"
|
||||
assert_contains "$runtime_script" ".baron-deps-hash"
|
||||
done
|
||||
|
||||
echo "staging frontend deploy policy checks passed"
|
||||
|
||||
Reference in New Issue
Block a user