name: Architecture Governance

on:
  push:
    branches:
      - '**'
  pull_request:

jobs:
  architecture:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup Node
        uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: npm

      - name: Install Dependencies
        run: npm ci

      - name: Enforce Boundaries
        run: npm run arch:check

      - name: Build
        run: npm run build
