vercel.deployment.success #29
This file contains hidden or 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: Endform tests on main | |
| on: | |
| repository_dispatch: | |
| types: | |
| - 'vercel.deployment.success' | |
| jobs: | |
| e2e-tests: | |
| if: github.event.client_payload.git.ref == 'main' && github.event.client_payload.environment == 'production' | |
| timeout-minutes: 5 | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| statuses: write | |
| contents: read | |
| steps: | |
| - name: Vercel Repository Dispatch Debug | |
| uses: vercel/repository-dispatch/actions/debug@v1 | |
| - name: With Commit Status | |
| uses: vercel/repository-dispatch/actions/status@v1 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run Playwright tests with Endform | |
| run: npx endform@latest test | |
| env: | |
| ENDFORM_API_KEY: ${{ secrets.ENDFORM_API_KEY }} |