fix: start server for playwright tests #4
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: Biome and Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
biome: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
run_install: true | |
- name: Run Biome | |
working-directory: ./src | |
run: pnpm ci:biome | |
tests: | |
needs: biome | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
run_install: true | |
- name: Run unit tests | |
run: pnpm test:unit | |
- name: Run integration tests | |
run: pnpm test:integration | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install --with-deps | |
- name: Run e2e tests | |
run: pnpm test:e2e |