Changes to be committed: (#2) #7
This file contains 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: Run tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test_unit: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: { node-version: '18' } | |
- run: npm ci | |
- run: npm run build | |
- run: npm run test:unit | |
test_e2e: | |
name: End-to-end tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: { node-version: '18' } | |
- run: npm ci | |
- run: npx playwright install chromium --with-deps | |
- run: npm run test:e2e |