Skip to content

Niloofar | Mark | @deriv/integration and playwright implementations [POC] #20

Niloofar | Mark | @deriv/integration and playwright implementations [POC]

Niloofar | Mark | @deriv/integration and playwright implementations [POC] #20

Workflow file for this run

name: Deployment Playwright Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test_setup:
name: Test setup
runs-on: ubuntu-latest
outputs:
preview_url: ${{ steps.waitForVercelPreviewDeployment.outputs.url }}
steps:
- name: Wait for Vercel preview deployment to be ready
uses: patrickedqvist/wait-for-vercel-preview@1.2.0
id: waitForVercelPreviewDeployment
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 600
test_e2e:
needs: tests_setup

Check failure on line 21 in .github/workflows/playwright.yml

View workflow run for this annotation

GitHub Actions / Deployment Playwright Tests

Invalid workflow file

The workflow is not valid. .github/workflows/playwright.yml (Line: 21, Col: 12): Job 'test_e2e' depends on unknown job 'tests_setup'.
name: Playwright tests
timeout-minutes: 60
runs-on: ubuntu-latest
if: github.event.deployment_status.state == 'success'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}