Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

Isolate combined Excel/SQL lab ESLint failures before other Linux gates with private-rule-only diagnostics

davoodmehraban89 committed Oct 21, 2026 at 09:14 UTC 89bd0754d57d7624bddbfb62891dfcc87200da57
1 file changed +12
.github/workflows/v6-combined-excel-sql-typecheck-linux-once.yml
+12
@@ -51,6 +51,18 @@ jobs:
51 set -euo pipefail
52 cd "$QA_WORK/src"
53 npm ci --no-audit --no-fund > "$QA_WORK/npm-ci.log" 2>&1 || { echo 'QA_NPM_CI_FAILED'; exit 1; }
54 + npm run lint > "$QA_WORK/first-lint.log" 2>&1 || {
55 + node - <<'NODE'
56 + const fs=require('node:fs'),p=process.env.QA_WORK+'/first-lint.log',c=fs.readFileSync(p,'utf8');
57 + for(const name of ['readonly-sql-lab','sql-lab/page.tsx','integrations/layout.tsx','excel-preview','v6-readonly-mayan-sql-client'])
58 + console.log('QA_LINT_SOURCE_'+name.replace(/[^a-zA-Z]/g,'_').toUpperCase()+'='+c.includes(name));
59 + const rules=[...new Set((c.match(/(?:@typescript-eslint|react-hooks|react|@next\\/next|jsx-a11y)\\/[a-z-]+/g)||[]))].slice(0,10);
60 + console.log('QA_LINT_SAFE_RULES='+rules.join(','));
61 + NODE
62 + echo 'QA_PRETEST_LINT_FAILED'
63 + exit 1
64 + }
65 + echo 'GATE_PASS_PRETEST_LINT'
66 npm test -- --reporter=dot > "$QA_WORK/test.log" 2>&1 || { echo 'QA_UNIT_FAILED'; exit 1; }
67 echo GATE_PASS_COMBINED_SQL_EXCEL_UNIT
68 npm run typecheck > "$QA_WORK/typecheck.log" 2>&1 || { echo 'QA_TYPECHECK_FAILED'; exit 1; }