Merge pull request #123 from evolution-foundation/develop #252
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tenant-db-context guard | |
| # Anti-forgetting guard for the tenant DB-context seam (ADR14, story 10.1b, AC4). | |
| # Fails the build when a tenant-scoped table is reached through the global pool | |
| # (@InjectRepository / AppDataSource.getRepository) instead of the TenantDbContext | |
| # seam, outside the documented allowlist. See scripts/check-tenant-db-context.mjs. | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| push: | |
| branches: [main, develop] | |
| jobs: | |
| tenant-db-context: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Enforce tenant DB-context seam | |
| run: node scripts/check-tenant-db-context.mjs |