Skip to content

Commit

Permalink
actual correct commands
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Mar 5, 2024
1 parent 6b253d8 commit 8f99b7c
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/playwright-cuj.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Run Critical User Journeys against new deployment
on:
deployment_status:

env:
report_name: critical-user-journey-report-${{ github.event.deployment_status.environment }}-${{ github.sha }}

jobs:
e2e:
timeout-minutes: 30
Expand All @@ -17,30 +21,24 @@ jobs:
node-version-file: .tool-versions
cache: npm
cache-dependency-path: package-lock.json
- run: npm install
- run: npm install --ignore-scripts
- run: npx playwright install --with-deps chromium
- run: npx playwright test
- run: npx playwright test all-scenarios
env:
CI: true
HOME: /root
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.environment_url }}
- uses: actions/upload-artifact@v4
if: always()
id: artifact
with:
name: critical-user-journey-report-${{ github.event.deployment_status.environment }}-${{ github.sha }}
path: critical-user-journey-report/
name: ${{ env.report_name }}
path: playwright-report
retention-days: 30
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
if: always()
with:
path: critical-user-journey-report/


pages:
name: Deploy test report to Github pages
needs: e2e
if: always()
permissions:
pages: write
id-token: write
Expand All @@ -54,6 +52,7 @@ jobs:
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: ${{ env.report_name }}
preview: true


0 comments on commit 8f99b7c

Please sign in to comment.