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