This repository has been archived by the owner on Jan 4, 2025. It is now read-only.
refactor: improve password validation #18
Workflow file for this run
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: Server and E2E tests | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
defaults: | |
run: | |
shell: bash # Required for Bash jobs | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "^22" | |
cache: "npm" | |
- name: Install dependencies | |
run: npm run install:all | |
- name: Install Playwright Browsers | |
run: npx --prefix=client playwright install --with-deps | |
- name: Build server | |
run: npm --prefix=server run build | |
- name: Start Docker services | |
run: docker compose up --detach | |
- name: Start servers | |
run: | | |
npm --prefix=client run start & | |
npm --prefix=server run start & | |
- name: Run server tests | |
run: npm --prefix=server run test | |
- name: Run Playwright tests | |
run: npm --prefix=client run pw | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: client/playwright-report | |
retention-days: 30 |