chore: Bump @testing-library/jest-dom from 6.9.1 to 7.0.1 #5092
Workflow file for this run
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
| # The "App Preview" workflow runs on every pull request. It deploys a preview environment to Vercel, comments the | |
| # deployment URL on the pull request, and runs E2E smoke tests against the preview. | |
| # When the PR touches the assistant service (see .github/filters.yml), the assistant preview is deployed FIRST and | |
| # the app preview is built against it (NEXT_PUBLIC_ASSISTANT_URL override) — the assistant cannot be tested without | |
| # the app, so the two previews are chained. PRs that do not touch the assistant use dev.assistant.aragon.org | |
| # (the default in the app env config). | |
| # Build verification (BV/Synpress) tests run only on staging as part of the release process. | |
| name: App Preview | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| changes: | |
| if: ${{ !startsWith(github.head_ref, 'release/') && !startsWith(github.head_ref, 'hotfix/') && !startsWith(github.head_ref, 'changeset-release/') }} | |
| runs-on: ubuntu-latest | |
| outputs: | |
| assistant: ${{ steps.filter.outputs.assistant }} | |
| steps: | |
| # File-based `filters:` is read from disk by paths-filter, so the file must be checked out. | |
| - name: Checkout filters | |
| uses: actions/checkout@v7.0.1 | |
| with: | |
| fetch-depth: 1 | |
| sparse-checkout: | | |
| .github/filters.yml | |
| - name: Detect workspace changes | |
| id: filter | |
| uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v3.0.2 (https://github.com/dorny/paths-filter/releases/tag/v3.0.2) | |
| with: | |
| filters: .github/filters.yml | |
| deploy-assistant: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.assistant == 'true' }} | |
| uses: ./.github/workflows/shared-deploy.yml | |
| secrets: inherit | |
| with: | |
| env: "preview" | |
| workspace: "apps/assistant" | |
| vault-prefix: "kv_assistant" | |
| patch-root-directory: false | |
| # Serverless functions only see runtime env vars (the .env file is build-time only). | |
| runtime-env-keys: "AI_GATEWAY_API_KEY LINEAR_API_KEY LINEAR_TEAM_ID UPSTASH_REDIS_REST_URL UPSTASH_REDIS_REST_TOKEN BLOB_READ_WRITE_TOKEN CRON_SECRET SENTRY_DSN" | |
| upload-sentry-source-maps: true | |
| deploy: | |
| needs: [changes, deploy-assistant] | |
| if: ${{ !cancelled() && needs.changes.result == 'success' && (needs.deploy-assistant.result == 'success' || needs.deploy-assistant.result == 'skipped') }} | |
| uses: ./.github/workflows/shared-deploy.yml | |
| secrets: inherit | |
| with: | |
| env: "preview" | |
| env-overrides: ${{ needs.deploy-assistant.outputs.deploymentUrl != '' && format('NEXT_PUBLIC_ASSISTANT_URL={0}', needs.deploy-assistant.outputs.deploymentUrl) || '' }} | |
| comment: | |
| runs-on: ubuntu-latest | |
| needs: [deploy-assistant, deploy] | |
| if: ${{ !cancelled() && needs.deploy.result == 'success' }} | |
| steps: | |
| - name: Comment preview PR | |
| uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1 (https://github.com/thollander/actions-comment-pull-request/releases/tag/v3.0.1) | |
| with: | |
| message: | | |
| 🚀 **Preview Deployment:** [View Here](${{ needs.deploy.outputs.deploymentUrl }}) | |
| ${{ needs.deploy-assistant.outputs.deploymentUrl != '' && format('🤖 **Assistant Preview:** [View Here]({0}) (app preview points at it)', needs.deploy-assistant.outputs.deploymentUrl) || '' }} | |
| comment-tag: preview-url | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| e2e: | |
| needs: deploy | |
| if: ${{ !cancelled() && needs.deploy.result == 'success' }} | |
| uses: ./.github/workflows/shared-e2e.yml | |
| secrets: inherit | |
| with: | |
| deployment-url: ${{ needs.deploy.outputs.deploymentUrl }} | |
| environment: preview | |
| e2e-comment: | |
| needs: [deploy, e2e] | |
| if: ${{ always() && needs.deploy.result == 'success' && needs.e2e.result != 'skipped' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Comment E2E results | |
| env: | |
| ARTIFACT_VIEWER_HOST: gh-artifact-viewer.aragonservices.in | |
| uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1 (https://github.com/thollander/actions-comment-pull-request/releases/tag/v3.0.1) | |
| with: | |
| comment-tag: e2e-results | |
| message: | | |
| **E2E results (preview)** | |
| **Smoke** | |
| | | | | |
| |---|---| | |
| | Base URL | ${{ needs.deploy.outputs.deploymentUrl }} | | |
| | Suite | smoke | | |
| | Playwright result | ${{ needs.e2e.outputs.result_label }} | | |
| | Summary | ${{ needs.e2e.outputs.summary }} | | |
| | HTML report | [View report](https://${{ env.ARTIFACT_VIEWER_HOST }}/${{ github.repository }}/${{ needs.e2e.outputs.report_artifact_id }}/index.html) | | |
| | GitHub job | ${{ needs.e2e.result == 'success' && '✅ completed' || needs.e2e.result == 'failure' && '❌ workflow failed' || '⏹️ cancelled' }} | | |
| [View run #${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |