Deployment Testing Workflow #17
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: Deployment Testing Workflow | |
on: | |
- deployment_status | |
jobs: | |
test-e2e: | |
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Initialize | |
uses: ./.github/actions/initialize | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install --with-deps | |
- name: E2E testing | |
run: pnpm run test:e2e | |
env: | |
BASE_URL: ${{ github.event.deployment_status.target_url }} | |
- name: Upload test report | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: e2e-report | |
path: e2e/report | |
retention-days: 5 |