Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
Inventory V6 Excel import/export test hooks and SQL integration readiness using only safe static yes/no findings
davoodmehraban89 committed
Oct 18, 2026 at 14:17 UTC
b2140ce1d6d19e0c73e0168f6b7cd0a8942f75a1
1 file changed
+69
.github/workflows/v6-private-excel-inventory-once.yml
new
+69
@@ -0,0 +1,69 @@
1
+name: V6 private Excel and SQL integration readiness inventory (NOT V7)
2
+on:
3
+ push:
4
+ branches: ['ci/public-windows-bridge-probe-20261017']
5
+ paths: ['.github/workflows/v6-private-excel-inventory-once.yml']
6
+permissions:
7
+ contents: read
8
+jobs:
9
+ inspect:
10
+ runs-on: ubuntu-22.04
11
+ timeout-minutes: 10
12
+ steps:
13
+ - name: Verify read-only private V6 staging source and extract only on ephemeral Linux runner
14
+ env:
15
+ GH_TOKEN: ${{ secrets.TF_VALIDATION_READ_TOKEN }}
16
+ shell: bash
17
+ run: |
18
+ set -euo pipefail
19
+ test -n "$GH_TOKEN"
20
+ mkdir -p "$RUNNER_TEMP/tf-v6-private"
21
+ gh release download validation-inputs-20261017 --repo davoodmehraban89/TreasuryFlow-Validation-Private --pattern TreasuryFlow_Validation_Staging_20261017.zip --dir "$RUNNER_TEMP" >/dev/null 2>&1
22
+ echo '9ce46ce2d2a437e08cbf28146b2cf2ac0ed078c71f1aeb537764390cdd3c552f ' "$RUNNER_TEMP/TreasuryFlow_Validation_Staging_20261017.zip" | sed 's/ / /' >/dev/null
23
+ sum=$(sha256sum "$RUNNER_TEMP/TreasuryFlow_Validation_Staging_20261017.zip" | cut -d' ' -f1)
24
+ test "$sum" = '9ce46ce2d2a437e08cbf28146b2cf2ac0ed078c71f1aeb537764390cdd3c552f'
25
+ unzip -q "$RUNNER_TEMP/TreasuryFlow_Validation_Staging_20261017.zip" -d "$RUNNER_TEMP/tf-v6-private"
26
+ echo "TF_PRIVATE_ROOT=$RUNNER_TEMP/tf-v6-private" >> "$GITHUB_ENV"
27
+ echo 'PRIVATE_STAGING_SHA256_PASS'
28
+ - name: Emit only coarse-grained functionality and test coverage metadata
29
+ shell: bash
30
+ run: |
31
+ set -euo pipefail
32
+ cat > "$RUNNER_TEMP/safe-inventory.mjs" <<'NODE'
33
+ import fs from 'node:fs';
34
+ import path from 'node:path';
35
+ const root=process.env.TF_PRIVATE_ROOT;
36
+ const packageJson=JSON.parse(fs.readFileSync(path.join(root,'package.json'),'utf8'));
37
+ const files=[];
38
+ function scan(dir) {
39
+ if(!fs.existsSync(dir))return;
40
+ for(const f of fs.readdirSync(dir,{withFileTypes:true})){
41
+ if(['node_modules','.next','release','.git','.cache'].includes(f.name))continue;
42
+ const full=path.join(dir,f.name);
43
+ if(f.isDirectory())scan(full);
44
+ else if(/[.](?:[cm]?[jt]sx?|mjs)$/.test(f.name)&&fs.statSync(full).size<=150000)files.push({name:f.name,text:fs.readFileSync(full,'utf8')});
45
+ }
46
+ }
47
+ for(const dir of ['src','scripts','native','qa'])scan(path.join(root,dir));
48
+ const subject=files.filter(f=>/excel|xlsx|spreadsheet|workbook|csv/i.test(f.text));
49
+ const test=files.filter(f=>/[.](test|spec)[.]/.test(f.name));
50
+ const excelTests=test.filter(f=>/excel|xlsx|spreadsheet|workbook/i.test(f.text));
51
+ const excelParserDeps=Object.entries({...packageJson.dependencies,...packageJson.devDependencies}).filter(([k])=>/^(xlsx|exceljs|read-excel-file|sheetjs|@e965/xlsx)$/.test(k));
52
+ const features={
53
+ EXCEL_PARSER_DEPENDENCY:excelParserDeps.length>0,
54
+ EXCEL_SOURCE_REFERENCE:subject.some(f=>/excel|xlsx|spreadsheet|workbook/i.test(f.text)),
55
+ EXCEL_TEST_CASE_REFERENCE:excelTests.length>0,
56
+ EXCEL_FILE_UPLOAD_ELEMENT:files.some(f=>/type=['"]file['"]|type:\s*['"]file['"]/.test(f.text)&&/xlsx|excel/i.test(f.text)),
57
+ EXCEL_EXPORT_REFERENCE:files.some(f=>/export|download/i.test(f.text)&&/excel|xlsx/i.test(f.text)),
58
+ SQL_SERVER_LIBRARY_DEPENDENCY:Boolean(packageJson.dependencies?.mssql||packageJson.devDependencies?.mssql),
59
+ SQL_USER_QUERY_EXECUTION_REFERENCE:files.some(f=>/mssql|sql\.connect|new sql\.ConnectionPool/i.test(f.text)),
60
+ MAYAN_NATIVE_SOURCE_PRESENT:fs.existsSync(path.join(root,'native','MayanInterop','Program.cs')),
61
+ V6_STAGE_PACKAGE_VERSION_1_0_1:packageJson.version==='1.0.1'
62
+ };
63
+ for(const [name,value] of Object.entries(features))console.log(name+'='+value);
64
+ console.log('TEST_FILE_COUNT='+test.length);
65
+ console.log('EXCEL_REFERENCING_TEST_FILE_COUNT='+excelTests.length);
66
+ NODE
67
+ node "$RUNNER_TEMP/safe-inventory.mjs"
68
+ echo 'SCOPE=STATIC_FEATURE_INVENTORY_ONLY'
69
+ echo 'NO_PRIVATE_SOURCE_OR_ASSETS_UPLOADED'