From 2cbdc3e89dfecad8f74fed0a44f74769408f5367 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Sun, 12 May 2024 18:25:57 +0200 Subject: [PATCH] Playwright: Install only needed browsers --- .github/workflows/functional-tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index e1c0414a5..fe01676c6 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -33,7 +33,7 @@ jobs: max-parallel: 4 matrix: python-version: ["3.11"] - playwright-project: ["chromium", "firefox"] + playwright-browser: ["chromium", "firefox"] steps: - uses: actions/checkout@v4 @@ -53,9 +53,9 @@ jobs: - name: Install dependencies working-directory: ${{ env.working-directory }} run: npm ci - - name: Install Playwright Browsers + - name: Install Playwright browser ${{ matrix.playwright-browser }} working-directory: ${{ env.working-directory }} - run: npx playwright install --with-deps + run: npx playwright install --with-deps ${{ matrix.playwright-browser }} - name: Create frontend environment variables file working-directory: ${{ env.working-directory }} run: | @@ -91,9 +91,9 @@ jobs: export $(grep -v '^#' .env | xargs) python manage.py createsuperuser --noinput nohup python manage.py runserver & - - name: Run tests + - name: Run tests with browser ${{ matrix.playwright-browser }} working-directory: ${{ env.working-directory }} - run: npx playwright test --project=${{ matrix.playwright-project }} + run: npx playwright test --project=${{ matrix.playwright-browser }} - uses: actions/upload-artifact@v4 if: always() with: