additional e2e tests. Respond to http as well #51
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: 'Tests' | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
# https://pnpm.io/continuous-integration#github-actions | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm run tsc | |
- name: Run unit tests | |
run: pnpm test | |
- run: pnpm exec playwright install --with-deps | |
- name: Run end-to-end tests | |
run: pnpm run test:e2e | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: tests-report | |
path: ./tests/report | |
retention-days: 30 |