Manuel Bustillo
54f345c9e5
Some checks failed
Playwright Tests / test (pull_request) Has been cancelled
Check usage of free licenses / build-static-assets (pull_request) Has been cancelled
Add copyright notice / copyright_notice (pull_request) Has been cancelled
Build Nginx-based docker image / build-static-assets (pull_request) Has been cancelled
32 lines
904 B
YAML
32 lines
904 B
YAML
name: Playwright Tests
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
concurrency:
|
|
group: ${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 60
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ secrets.PRIVATE_REGISTRY_USERNAME }}/playwright-docker:latest
|
|
credentials:
|
|
username: ${{ secrets.PRIVATE_REGISTRY_USERNAME }}
|
|
password: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: lts/*
|
|
- name: Install dependencies
|
|
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 &
|
|
- name: Run Playwright tests
|
|
run: pnpm exec playwright test
|