32 lines
904 B
YAML
Raw Permalink 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:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
2024-11-01 19:45:54 +01:00
image: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ secrets.PRIVATE_REGISTRY_USERNAME }}/playwright-docker:latest
credentials:
username: ${{ secrets.PRIVATE_REGISTRY_USERNAME }}
password: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}
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
2024-11-01 19:45:54 +01:00
run: 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 &
2024-08-11 20:18:38 +02:00
- name: Run Playwright tests
run: pnpm exec playwright test