Skip to content

Commit

Permalink
Use matrix strategy for functional tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed May 12, 2024
1 parent c385810 commit 4d21dc7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
mailhog:
image: mailhog/mailhog
ports: [
"1025:1025",
"8025:8025"
]
ports: ["1025:1025", "8025:8025"]

strategy:
max-parallel: 4
matrix:
python-version: ["3.11"]
playwright-project: ["chromium", "firefox"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -95,7 +93,7 @@ jobs:
nohup python manage.py runserver &
- name: Run tests
working-directory: ${{ env.working-directory }}
run: npx playwright test
run: npx playwright test --project=${{ matrix.playwright-project }}
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down

0 comments on commit 4d21dc7

Please sign in to comment.