@soulbatical/tetra-dev-toolkit 1.9.2 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -68,19 +68,26 @@ export async function check(projectPath) {
|
|
|
68
68
|
result.details.missing.push('Layer 2: .husky/pre-push missing tetra-check-rls')
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
// Layer 3:
|
|
72
|
-
|
|
71
|
+
// Layer 3: build/deploy has tetra-check-rls --errors-only
|
|
72
|
+
// Check railway.json, Dockerfile, docker-compose, and CI workflows
|
|
73
|
+
const buildFiles = [
|
|
73
74
|
join(projectPath, 'railway.json'),
|
|
74
75
|
join(projectPath, '..', 'railway.json'),
|
|
75
|
-
join(projectPath, 'backend', 'railway.json')
|
|
76
|
+
join(projectPath, 'backend', 'railway.json'),
|
|
77
|
+
join(projectPath, 'Dockerfile'),
|
|
78
|
+
join(projectPath, 'backend', 'Dockerfile'),
|
|
79
|
+
join(projectPath, '.github', 'workflows', 'quality.yml'),
|
|
80
|
+
join(projectPath, '.github', 'workflows', 'deploy.yml'),
|
|
81
|
+
join(projectPath, '.github', 'workflows', 'ci.yml')
|
|
76
82
|
]
|
|
77
83
|
|
|
78
|
-
for (const p of
|
|
84
|
+
for (const p of buildFiles) {
|
|
79
85
|
if (existsSync(p)) {
|
|
80
86
|
try {
|
|
81
87
|
const content = readFileSync(p, 'utf-8')
|
|
82
88
|
if (content.includes('tetra-check-rls')) {
|
|
83
89
|
result.details.layer3_build = true
|
|
90
|
+
result.details.layer3_source = p.split('/').slice(-2).join('/')
|
|
84
91
|
result.score += 1
|
|
85
92
|
break
|
|
86
93
|
}
|
|
@@ -89,7 +96,7 @@ export async function check(projectPath) {
|
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
if (!result.details.layer3_build) {
|
|
92
|
-
result.details.missing.push('Layer 3:
|
|
99
|
+
result.details.missing.push('Layer 3: No build/deploy file contains tetra-check-rls --errors-only (checked railway.json, Dockerfile, CI workflows)')
|
|
93
100
|
}
|
|
94
101
|
|
|
95
102
|
// Set status
|