Manuel Bustillo 081c8eb9dd
Some checks failed
Playwright Tests / test (pull_request) Failing after 4m51s
Avoid unnecessary step of installing browsers
2024-08-11 21:19:47 +02:00

26 lines
666 B
YAML

name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.34.3-jammy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm install -g pnpm && pnpm install
- name: Build the service that will be tested
run: npm run build
- name: Run the service that will be tested
run: npm run start &
- name: Run Playwright tests
run: pnpm exec playwright test