Skip to content

Commit

Permalink
Playwright: Install only needed browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed May 12, 2024
1 parent 4d21dc7 commit 2cbdc3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2cbdc3e

Please sign in to comment.