44 extend automated testing and establish continuous quality checks #1
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: Quality | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: quality-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| quality: | |
| name: Clean install and quality (${{ matrix.os }}) | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: | | |
| backend/package-lock.json | |
| frontend/package-lock.json | |
| - run: npm ci --prefix backend --include=optional | |
| - run: npm ci --prefix frontend --include=optional | |
| - run: npm run build --prefix backend | |
| - run: npm run build --prefix frontend | |
| - run: npm run typecheck:e2e --prefix frontend | |
| - run: npm run lint --prefix backend | |
| - run: npm run lint --prefix frontend | |
| - run: npm run format:check --prefix backend | |
| - run: npm run format:check --prefix frontend | |
| - run: npm test --prefix backend | |
| - run: npm test --prefix frontend | |
| application: | |
| name: MongoDB integration and browser tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| services: | |
| mongodb-test: | |
| image: mongo:8.0 | |
| ports: | |
| - 27028:27017 | |
| options: >- | |
| --health-cmd "mongosh --quiet --eval 'db.adminCommand({ ping: 1 }).ok'" | |
| --health-interval 5s | |
| --health-timeout 5s | |
| --health-retries 20 | |
| env: | |
| MONGODB_TEST_URI: mongodb://127.0.0.1:27028 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: | | |
| backend/package-lock.json | |
| frontend/package-lock.json | |
| - run: npm ci --prefix backend --include=optional | |
| - run: npm ci --prefix frontend --include=optional | |
| - name: Install Chromium and Linux browser dependencies | |
| working-directory: frontend | |
| run: npx playwright install --with-deps chromium | |
| - run: npm run test:integration --prefix backend | |
| - run: npm run test:e2e --prefix frontend | |
| - name: Preserve browser diagnostics | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: playwright-results | |
| path: | | |
| frontend/playwright-report/ | |
| frontend/test-results/ | |
| if-no-files-found: ignore | |
| retention-days: 7 |