E2E Test #1302
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: E2E Test | |
on: | |
deployment_status: | |
jobs: | |
e2e-test: | |
name: Playwright | |
runs-on: ubuntu-latest | |
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install Playwright Dependencies | |
run: pnpm playwright install --with-deps | |
- name: Print BASE_URL | |
run: echo Running on ${{ github.event.deployment_status.target_url }} | |
- name: Run Playwright Test | |
run: pnpm test:e2e | |
env: | |
BASE_URL: ${{ github.event.deployment_status.target_url }} |