Merge pull request #77 from minecraft-gilde/desgin-ampassungen #351
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: Build & Quality | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| quality: | |
| name: Quality Gate | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup Node | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - name: Enforce Node engine constraints | |
| run: npm config set engine-strict true | |
| - name: Install project dependencies | |
| run: npm ci | |
| - name: Install Playwright browser | |
| run: npx playwright install --with-deps chromium | |
| - name: Check formatting (Prettier) | |
| run: npm run format:check | |
| - name: Lint (ESLint) | |
| run: npm run lint | |
| - name: Type / Template check (Astro) | |
| run: npm run check | |
| - name: Config drift check (site URLs) | |
| run: npm run config:check | |
| - name: Unit tests (Vitest) | |
| run: npm run test | |
| - name: E2E smoke tests (Playwright) | |
| run: npm run test:e2e | |
| - name: Build | |
| run: npm run build |