Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielClarkeEducation committed Nov 8, 2024
1 parent 37e3181 commit eb16d70
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/actions/run-playwright-smoke-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,25 @@ inputs:
runs:
using: composite
steps:
- name: Run Playwright Smoke Tests
uses: ./.github/workflows/playwright.yml
if: success() || failure()
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
webapp_url: ${{ inputs.webapp_url }}
auth_secret: ${{ inputs.auth_secret }}
node-version: lts/*
- name: Install dependencies
shell: bash
working-directory: ./tests/Dfe.EarlyYearsQualification.SmokeTests/playwright
run: npm ci
- name: Install Playwright Browsers
shell: bash
working-directory: ./tests/Dfe.EarlyYearsQualification.SmokeTests/playwright
run: npx playwright install --with-deps
- name: Run Playwright tests
shell: bash
working-directory: ./tests/Dfe.EarlyYearsQualification.SmokeTests/playwright
run: WEBAPP_URL=https://${{ inputs.webapp_name }}.azurewebsites.net AUTH_SECRET=${{ inputs.auth_secret }} npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30

0 comments on commit eb16d70

Please sign in to comment.