Added Playwright selfhost tests and e2e spec for new install process #65
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: Playwright Visitor Tests | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Create .env file | |
run: cp .env.e2e .env | |
- name: Install dependencies | |
run: npm install -g pnpm && pnpm install | |
- name: Build Frontend App | |
run: pnpm build:e2e | |
- name: docker compose run | |
run: docker-compose up -d | |
- name: Run Playwright tests | |
run: pnpm exec playwright test visitor.spec.ts | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |