feat: Flex-Test Accessibility Automation & Run Tests Only In chrome (DTCRCMERC-3553) #234
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Playwright Accessibility Tests | |
on: | |
# allow for manual triggers | |
workflow_dispatch: {} | |
push: | |
branches: [playwright-automated-testing] | |
pull_request: | |
branches: [playwright-automated-testing] | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm i | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run server | |
run: | | |
./.github/scripts/runServerV2.sh | |
- name: Run Playwright Tests | |
run: npx playwright test tests/playwright/tests | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 1 |