feat(architecture): Initial release of Production-ready Angular 21 SS… #6
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: CI Build & Test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [24.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run Tests (Headless) | |
| run: npm run test -- --watch=false --browsers=ChromeHeadless | |
| - name: Run Angular Build (Production + SSR) | |
| run: npm run build:prod | |
| - name: Verify Build Artifacts | |
| run: | | |
| if [ ! -d "dist/personal-website/browser" ]; then | |
| echo "Build failed: Browser bundle missing" | |
| exit 1 | |
| fi | |
| if [ ! -d "dist/personal-website/server" ]; then | |
| echo "Build failed: Server bundle missing" | |
| exit 1 | |
| fi | |
| echo "Build succeeded. Artifacts verified." |