Document Revisions UI #121
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: Playwright Tests | |
on: | |
pull_request: | |
branches: [master] | |
env: | |
URL: "https://deploy-preview-${{ github.event.number }}.muckcloud.com" | |
PLAYWRIGHT_TEST_BASE_URL: "https://deploy-preview-${{ github.event.number }}.muckcloud.com" | |
NODE_ENV: staging | |
jobs: | |
wait: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: cygnetdigital/[email protected] | |
with: | |
url: ${{ env.URL }} | |
responseCode: "200" | |
timeout: 120000 | |
interval: 3000 | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
needs: wait | |
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 |