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 0c4c178 commit d99c7a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
25 changes: 7 additions & 18 deletions .github/actions/run-playwright-smoke-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,12 @@ inputs:

runs:
using: composite
defaults:
run:
working-directory: ./tests/Dfe.EarlyYearsQualification.SmokeTests/playwright
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Run Playwright Smoke Tests
uses: cypress-io/github-action@v6
if: success() || failure()
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
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
env: auth_secret="${{ inputs.auth_secret }}"
working-directory: ./tests/Dfe.EarlyYearsQualification.SmokeTests/
browser: chrome
config: baseUrl="https://${{ inputs.webapp_url }}.azurewebsites.net"
2 changes: 1 addition & 1 deletion .github/workflows/development-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
webapp_url: ${{ vars.WEBAPP_NAME }}

- name: Run Playwright smoke tests
uses: ./.github/actions/run-playwright-smoke-tests
uses: ./.github/workflows/playwright.yml
with:
webapp_url: ${{ vars.WEBAPP_NAME }}
auth_secret: ${{ secrets.WEBAPP_E2E_ACCESS_KEY }}

0 comments on commit d99c7a1

Please sign in to comment.