chore(deps): update dependency @playwright/test to v1.49.1 #109
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 Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm ci | |
- name: Install cross-env | |
run: npm i -g cross-env | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Test database deployment | |
run: docker-compose up -d | |
- name: Seeding | |
run: cross-env DATABASE_URL=mongodb://localhost:27017/chooseyourplace node scripts/seed.js | |
- name: Run Playwright tests | |
run: cross-env DATABASE_URL=mongodb://localhost:27017/chooseyourplace npm run test:e2e |