Skip to content

Tests Playwright

Tests Playwright #852

name: Tests Playwright
on:
deployment_status:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
if: >
github.event_name == 'deployment_status'
&& github.event.deployment_status.state == 'success'
&& contains(github.event.deployment_status.target_url, 'mesaidesvelo')
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: actions/setup-node@v2
with:
node-version: '20'
- run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm run test
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}