From 54f345c9e57ac05fca49ac7f33069884631bd2e8 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Fri, 1 Nov 2024 19:45:54 +0100 Subject: [PATCH] Update image to run playwright tests --- .github/workflows/playwright.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index bdf273e..1ca77f2 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -12,18 +12,19 @@ jobs: timeout-minutes: 60 runs-on: ubuntu-latest 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: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: lts/* - name: Install dependencies - run: npm install -g pnpm && pnpm install + run: 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