Update image to run playwright tests
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

This commit is contained in:
Manuel Bustillo 2024-11-01 19:45:54 +01:00
parent a55b819378
commit 54f345c9e5

View File

@ -12,18 +12,19 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/playwright:latest image: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ secrets.PRIVATE_REGISTRY_USERNAME }}/playwright-docker:latest
credentials:
username: ${{ secrets.PRIVATE_REGISTRY_USERNAME }}
password: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: lts/* node-version: lts/*
- name: Install dependencies - name: Install dependencies
run: npm install -g pnpm && pnpm install run: pnpm install
- name: Build the service that will be tested - name: Build the service that will be tested
run: npm run build run: npm run build
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run the service that will be tested - name: Run the service that will be tested
run: npm run start & run: npm run start &
- name: Run Playwright tests - name: Run Playwright tests