Skip to content

Bump concurrently from 9.1.1 to 9.1.2 #628

Bump concurrently from 9.1.1 to 9.1.2

Bump concurrently from 9.1.1 to 9.1.2 #628

Workflow file for this run

name: 'E2E Tests'
on: [pull_request]
env:
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
jobs:
tests_e2e_netlify_prepare:
name: Wait for deployment on Netlify
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Retry Netlify Deployment
run: |
retries=5
count=0
until $(curl --output /dev/null --silent --head --fail https://deploy-preview-${{ github.event.pull_request.number }}--eventua11y.netlify.app/); do
((count++))
if [ ${count} -ge ${retries} ]; then
echo "Max retries reached, failing the job."
exit 1
fi
echo "Netlify site not ready, retrying in 60 seconds..."
sleep 60
done
env:
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
tests_e2e_netlify:
needs: tests_e2e_netlify_prepare
name: Run end-to-end tests on Netlify PR preview
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Run tests
run: npx playwright test
env:
PLAYWRIGHT_TEST_BASE_URL: 'https://deploy-preview-${{ env.GITHUB_PR_NUMBER }}--eventua11y.netlify.app/'
DEBUG: pw:api