Manuel Bustillo 2c8276862b
All checks were successful
Playwright Tests / test (pull_request) Successful in 5m16s
Use the latest version of Microsoft's Docker image
2024-08-11 21:36:32 +02:00

28 lines
751 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:latest
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: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run the service that will be tested
run: npm run start &
- name: Run Playwright tests
run: pnpm exec playwright test