Wip/e2e test #81
Workflow file for this run
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 | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint & Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run format:check | |
| - run: npm run lint | |
| test-unit: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run test:unit | |
| test-e2e: | |
| name: E2E Tests (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.15.0 # workaround for https://github.com/max-mapper/extract-zip/issues/154 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Run E2E tests | |
| run: ${{ matrix.os == 'ubuntu-latest' && 'xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" dbus-run-session --' || '' }} npx playwright test | |
| shell: bash | |
| env: | |
| CI: 'true' | |
| - uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: test-results-${{ matrix.os }} | |
| path: test-results/ |