cypress-io / cypress-io/github-action
Add an option to log output to file
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 353
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 27
Description
**Context**
I'm using Cypress Cloud and what I want is that for each test run, a link to the Cypress Cloud run should be included somewhere in the PR.
We could do this by setting up a Github Action that comments the link in the PR - but how to get the link?
We can grep it from std out - the bit that says: Recorded Run: https://cloud.cypress.io/projects/xyz/runs/16, but how to get access to this?
I could log it to file:
```
- name: Execute Cypress
uses: cypress-io/github-action@v6
with:
command: npx cypress run | tee cypress-output.log
wait-on: http://localhost:8080
record: true
```
The problem with this is that it that the additional commands (--record) will be tacked on to `tee` not `npx`.
What would be nice if you can add an option like:
```
output_log: 'cypress-output.log'
```
That will also record std out as a file.
Contributor guide
Assessment
This issue has not been assessed yet.