chore(test): migrate from Karma to Jest and add CI jobs and mappings #12
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: | |
| pull_request: | |
| push: | |
| jobs: | |
| test-core: | |
| name: Core Jest | |
| 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 | |
| run: npm ci | |
| - name: Build (generate testing artifacts) | |
| run: npm run build -- --ci | |
| - name: Run Jest (core) | |
| run: npm run test.jest | |
| test-bundler: | |
| name: Bundler Jest | |
| runs-on: ubuntu-latest | |
| needs: test-core | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install | |
| run: npm ci | |
| - name: Build bundler artifacts | |
| run: npm run --prefix test/bundler build | |
| - name: Run Bundler tests | |
| run: npm run test.bundler |