chore: disable firefox tests #6
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, master ] | |
pull_request: | |
branches: [ main, master ] | |
jobs: | |
test: | |
name: Run Playwright tests | |
container: | |
image: mcr.microsoft.com/playwright:v1.41.2-jammy | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_USER: github | |
POSTGRES_PASSWORD: password123 | |
POSTGRES_DB: devertix | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
env: | |
DATABASE_URL: postgres://github:password123@postgres:5432/devertix | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v4 | |
- name: Install dependencies | |
run: npm install | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run migrations | |
run: npm run build | |
- name: Run migrations | |
run: npm run migrate | |
- name: Run seeder | |
run: npm run seed | |
- name: Run Playwright tests | |
run: npm run test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |