Skip to content

Replace dashboardUrl using a Cypress Cloud oriented name #909

@MikeMcC399

Description

@MikeMcC399

This is an enhancement suggestion related to the GitHub step output dashboardUrl which is used when github-action records in the Cypress Cloud, which used to be called Cypress Dashboard.

Suggested change

  1. Add a new parameter reflecting Cypress Cloud instead of Cypress Dashboard, for example cloudRunUrl
  2. Declare dashboardUrl as deprecated and retain its functionality until a future major version of github-action is released
  3. Update documentation and Cypress 12.x examples accordingly

Reason for change

Background

"This action sets a GitHub step output dashboardUrl if the run was recorded on Cypress Cloud using the action parameter setting record: true (see Record test results on Cypress Cloud)."


Current example

      - name: Cypress tests
        # normally you would write
        # uses: cypress-io/github-action@v5
        uses: ./
        # let's give this action an ID so we can refer
        # to its output values later
        id: cypress
        # Continue the build in case of an error, as we need to set the
        # commit status in the next step, both in case of success and failure
        continue-on-error: true
        with:
          working-directory: examples/recording
          record: true
          parallel: true
          group: Recording example
          tag: action

      # see "outcome" and "conclusion" of a step doc
      # https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#steps-context
      # "output" can be success, failure, cancelled, or skipped
      - name: Print Cypress Cloud URL
        run: |
          echo Cypress finished with: ${{ steps.cypress.outcome }}
          echo See results at ${{ steps.cypress.outputs.dashboardUrl }}

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions