diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml new file mode 100644 index 00000000..61bfb06f --- /dev/null +++ b/.github/workflows/e2e-tests.yml @@ -0,0 +1,16 @@ +name: e2e Tests + +on: + deployment_status: +jobs: + run-e2es: + if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: npm ci && npx playwright install --with-deps + - name: Run tests + run: npx playwright test + env: + BASE_URL: ${{ github.event.deployment_status.environment_url }}