diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 960a56b2..d30c9468 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -3,11 +3,10 @@ on: push: branches: [ release-3.0 ] jobs: - playwright: - name: 'Playwright Tests' + test: + timeout-minutes: 60 runs-on: ubuntu-latest - container: - image: mcr.microsoft.com/playwright:v1.41.1-jammy + if: github.event.deployment_status.state == 'success' steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -15,7 +14,9 @@ jobs: node-version: 18 - name: Install dependencies run: npm ci - - name: Run your tests + - name: Install Playwright + run: npx playwright install --with-deps + - name: Run Playwright tests run: npx playwright test env: - HOME: /root \ No newline at end of file + PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }} \ No newline at end of file