`dashboardUrl` not set in step outputs?
See original GitHub issueI just enabled recording on Cypress dashboard for my project, but am having trouble printing the dashboardUrl
.
It prints at the end of a run (in the Cypress step itself), but when I try to print it in another step itβs blank
Cypress step:
(Run Finished)
Spec Tests Passing Failing Pending Skipped
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β smoke.test.ts 00:14 3 3 - - - β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β All specs passed! 00:14 3 3 - - -
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Recorded Run: https://dashboard.cypress.io/projects/xxx/runs/7
Print step:
Cypress finished with: success
See results at
My configuration
name: Deploy
on:
pull_request:
types: [assigned, opened, synchronize, reopened]
jobs:
build-deploy:
...
smoke-test:
needs: build-deploy
runs-on: ubuntu-latest
name: Smoke test
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cypress run
uses: cypress-io/github-action@v2
id: cypress
continue-on-error: true
with:
command-prefix: yarn dlx # need this bc using yarn pnp w/o node_modules
install-command: yarn install --immutable --immutable-cache
build: yarn build-custom
headless: true
config: baseUrl=https://env.com/
spec: cypress/integration/smoke.test.ts
record: true
env:
CYPRESS_PROJECT_ID: xxx
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Print Dashboard URL
run: |
echo Cypress finished with: ${{ steps.cypress.outcome }}
echo See results at ${{ steps.cypress.outputs.dashboardUrl }}
Update: I also tried echo ${{ toJSON(steps.cypress.outputs) }}
in my step and it just prints an empty object {}
Update 2: added missing configuration for command-prefix and custom install
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Step 3: Embed the dashboard URL - Amazon QuickSight
Embed this dashboard in your webpage by using the QuickSight Embedding SDK or by adding this URL into an iframe. If you set...
Read more >Multi-Page Apps and URL Support - Dash Plotly
There are three basic steps for creating a multi-page app with Dash Pages: ... To set the image to a file that is...
Read more >Working with URLs in extensions - Azure DevOps
Learn about best practices for working with URLs in Azure DevOps extensions and integrations.
Read more >Step 4: Safe list Input and Output locations - Tableau Help
The directory paths should be accessible by Tableau Server. These paths are verified during server startup and at flow run time and are...
Read more >Error Messages | Maps JavaScript API - Google Developers
If you are NOT the website owner, there are no steps you can take to fix any ... the Maps JavaScript API has...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jazanne this may be a bug. Weβll have to look into it a bit more.
@dzzk yes. Here are the instructions for specifying the version: https://github.com/cypress-io/github-action#explicit-version