WIP: Reader UI #607
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: JavaScript Unit Testing | |
| on: | |
| push: | |
| branches: | |
| - trunk | |
| paths: | |
| - '**/*.js' | |
| - '**/*.jsx' | |
| - '**/*.ts' | |
| - '**/*.tsx' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - '.github/workflows/jest.yml' | |
| - '!tests/e2e/**' | |
| pull_request: | |
| paths: | |
| - '**/*.js' | |
| - '**/*.jsx' | |
| - '**/*.ts' | |
| - '**/*.tsx' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - '.github/workflows/jest.yml' | |
| - '!tests/e2e/**' | |
| jobs: | |
| jest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run JavaScript unit tests | |
| run: npm run test:unit |