diff --git a/.github/workflows/architecture-governance.yml b/.github/workflows/architecture-governance.yml index 928392e..c4f197b 100644 --- a/.github/workflows/architecture-governance.yml +++ b/.github/workflows/architecture-governance.yml @@ -26,5 +26,24 @@ jobs: - name: Enforce Boundaries run: npm run arch:check + # Was entirely missing before 2026-08-18: this workflow built and + # checked boundaries but never ran a single test. karma.conf.js's + # CHROME_BIN fallback is a Windows path, which the ubuntu-latest + # runner doesn't have - browser-actions/setup-chrome supplies one + # and CHROME_BIN below points at it explicitly. + - name: Setup Chrome + id: setup-chrome + uses: browser-actions/setup-chrome@v1 + + - name: Unit tests with coverage gate + env: + CHROME_BIN: ${{ steps.setup-chrome.outputs.chrome-path }} + run: npm run test:coverage + - name: Build run: npm run build + + - name: E2E + run: | + npx playwright install --with-deps chromium + npm run e2e diff --git a/karma.conf.js b/karma.conf.js index 2e544fc..3179560 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -26,6 +26,20 @@ module.exports = function (config) { dir: require('path').join(__dirname, 'coverage'), subdir: '.', reporters: [{ type: 'text-summary' }, { type: 'html' }, { type: 'lcovonly' }], + // Floor set 2026-08-18, ~5 points below the measured level right + // after this session's facade-test pass (43.3%/29.0%/34.1%/43.7% + // statements/branches/functions/lines) - a deliberate floor per the + // delivery plan's Q9 ("deliberately unset today"), not an aspiration. + // Ratchet this UP as coverage grows; a PR that drops below it should + // fail CI, not get merged with a lower number quietly re-baselined in. + check: { + global: { + statements: 40, + branches: 25, + functions: 30, + lines: 40, + }, + }, }, restartOnFileChange: true, });