From 5d547ecd318adb7d90ad64411edf25f6bfe13d22 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 7 Mar 2025 19:25:53 +0000 Subject: [PATCH] ci: use environment url --- .github/workflows/e2e.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index e49682ba..707d77aa 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -10,14 +10,14 @@ on: deployment_status: concurrency: - group: ${{ github.workflow }}-${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} + group: ${{ github.workflow }}-${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url || github.event.deployment_status.environment_url }} cancel-in-progress: true jobs: playwright: environment: name: ${{ github.event.deployment.environment || 'Production' }} - url: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} + url: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url || github.event.deployment_status.environment_url }} if: github.event.deployment_status.state == 'success' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest container: @@ -39,21 +39,21 @@ jobs: - run: pnpm test:e2e env: - BASE_URL: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} + BASE_URL: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url || github.event.deployment_status.environment_url }} lighthouse: environment: name: ${{ github.event.deployment.environment || 'Production' }} - url: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} + url: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url || github.event.deployment_status.environment_url }} if: github.event.deployment_status.state == 'success' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: curl ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} + - run: curl ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url || github.event.deployment_status.environment_url }} - name: Audit URLs using Lighthouse uses: treosh/lighthouse-ci-action@v12 with: - urls: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} + urls: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url || github.event.deployment_status.environment_url }} uploadArtifacts: true temporaryPublicStorage: true budgetPath: ./budget.json -- knotmirror 0.0.1