chore(test): migrate from Karma to Jest and add CI jobs and mappings #34
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 Code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: 🟢 Use Node | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| 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 Code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: 🟢 Setup Node | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: 🕸️ Install | |
| run: npm ci | |
| - name: 🏗️ Build core (required by bundler job) | |
| run: npm run build -- --ci | |
| - name: 🏗️ Build bundler artifacts | |
| run: npm run --prefix test/bundler build | |
| - name: 🧪 Run Bundler tests | |
| run: npm run test.bundler |