32 lines
832 B
YAML
Raw Normal View History

2024-08-11 20:18:38 +02:00
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
2024-10-27 19:44:23 +01:00
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
2024-08-11 20:18:38 +02:00
jobs:
test:
2024-12-01 20:06:33 +01:00
if: false
2024-08-11 20:18:38 +02:00
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:latest
2024-08-11 20:18:38 +02:00
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
2024-08-11 21:24:47 +02:00
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run the service that will be tested
run: npm run start &
2024-08-11 20:18:38 +02:00
- name: Run Playwright tests
run: pnpm exec playwright test