Closed edouard-lopez closed 3 years ago
@edouard-lopez you can use the upload-artifact
action:
- name: Upload screenshots
uses: actions/upload-artifact@latest
if: failure()
with:
name: cypress-snapshots
path: cypress/snapshots
The path
will be relative to the base path of your project.
Thanks, after trying upload-artifact
I decided to use https://github.com/trymbill/cypress-slack-video-upload-action which is a simpler workflow to share with my colleagues:
- name: "Upload screenshots to Slack"
uses: trymbill/cypress-slack-video-upload-action@v1.3.0
if: failure()
with:
token: ${{ secrets.SLACK_TOKEN }}
channels: "_tolk"
message-text: "Cypress tests failed! They have been placed in this thread, good luck."
@edouard-lopez this project is now archived. Do you know why? Do you still use it? Is there a better alternative?
Thanks!
@SrBrahma You should contact @trymbill for that, I'm not a maintainer of the project. Note, even archived you can use the repo I reckon
Thanks for the plugin, it's pretty nice!
I got the following error on CI, but can't reproduce locally. So I'm looking for a way to access the CI screenshot in order to understand the problem.
Question
Do you know how can I access the screenshot taken on Github Actions CI ?