ci: verify 단계 폴더 보장 및 요약 로그 출력 추가\n\n- artifacts/export 폴더 보장 스텝 추가\n- 무결성 검증 요약(ok/total/missing/...) 한 줄 출력
This commit is contained in:
+19
-4
@@ -43,16 +43,31 @@ jobs:
|
||||
if-no-files-found: ignore
|
||||
retention-days: 3
|
||||
|
||||
- name: Ensure artifacts export folder
|
||||
run: |
|
||||
set -euo pipefail
|
||||
mkdir -p ./artifacts/export
|
||||
|
||||
- name: Verify bundle integrity (optional)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ -d ./artifacts/export ]; then
|
||||
echo "Found ./artifacts/export; generating verify inputs"
|
||||
if [ -f ./artifacts/export/assets.integrity.index.json ]; then
|
||||
echo "Found integrity index; generating verify inputs"
|
||||
npm run verify:make-json
|
||||
echo "Running verify CLI"
|
||||
npm run verify:run
|
||||
npm run verify:run | tee /tmp/verify_output.json
|
||||
echo "--- verify summary (for quick view) ---"
|
||||
node -e '
|
||||
const fs = require("fs");
|
||||
try {
|
||||
const txt = fs.readFileSync("/tmp/verify_output.json", "utf-8");
|
||||
const obj = JSON.parse(txt);
|
||||
const s = obj.summary || {};
|
||||
console.log(`ok=${obj.ok} total=${s.total||0} missing=${s.missing||0} integMismatch=${s.integrityMismatches||0} sizeMismatch=${s.sizeMismatches||0} bundleHashMismatch=${s.bundleHashMismatch||false}`);
|
||||
} catch (e) { console.log("(verify summary parse skipped)"); }
|
||||
'
|
||||
else
|
||||
echo "No ./artifacts/export; skipping integrity verification"
|
||||
echo "No integrity index at ./artifacts/export/assets.integrity.index.json; skipping integrity verification"
|
||||
fi
|
||||
|
||||
- name: Auto-merge PR on green
|
||||
|
||||
Reference in New Issue
Block a user