Workflow failures executing "Try it out" for GitHub Actions
MikeMcC399 opened this issue · 4 comments
Subject
Continuous Integration > GitHub Actions > Basic Setup
Description
Issue
Continuous Integration > GitHub Actions > Basic Setup advises to "Try it out".
Depending on whether the new suggested workflow main.yml
is added through a push or via a PR to the master
branch, the action results in 3 failures from existing workflows (for push) or 16 failed checks (for PR). The added workflow itself works correctly.
The instructions are as follows:
Try it out
To try out the example above yourself, fork the Cypress Kitchen Sink example project and place the above GitHub Action configuration in a newly created
main.yml
file within.github/workflows/
.
Steps to reproduce
Create main.yml
in master
- Open https://github.com/cypress-io/cypress-example-kitchensink in web browser
- Select Fork > Create a new fork
- Take defaults, select "Create fork"
- Select Add file > Create a new file
- Name your file
.github/workflows/main.yml
. - Paste in contents of workflow from https://docs.cypress.io/guides/continuous-integration/github-actions#Basic-Setup
- Click on Commit changes...
- Take defaults (Commit directly to the master branch)
- Click "Commit changes"
6 workflows run. 3 workflows succeed, 3 workflows fail. The failures are:
- Using Cypress GH Action
- Cypress parallel tests
- Cypress single tests
Select Actions > Cypress Tests > ... menu Disable workflow
Create main2.yml
in master
- Select
<> Code
- Select Add file > Create a new file
- Name your file
.github/workflows/main2.yml
. - Paste in contents of workflow from https://docs.cypress.io/guides/continuous-integration/github-actions#Basic-Setup
- Change the name to "Cypress Tests 2"
- Click on Commit changes...
- Select "Create a new branch for this commit and start a pull request"
- Take the default name for the new branch
- Click "Propose changes"
- Click "Create pull request"
- Click "Create pull request"
- Note the message "Some checks were not successful"
- Wait until all checks have completed
16 failing and 5 successful checks are reported
In addition to the workflows which fail on push to master
(see above), the following PR workflows also fail:
- Add issue/PR to Triage Board
- Semantic Pull Request
Suggestion
- Temporarily remove the Try it out instructions Continuous Integration > GitHub Actions > Basic Setup
- Open one or more related issues in Cypress Kitchen Sink to address the workflow failures
- Replace the Try it out instructions when the issues in the Cypress Kitchen Sink repo are resolved.
See the following issues for workarounds:
These steps sounds fine.
- Step 1 addressed in PR #5777
Closing, as the documentation no longer says "Try it out"
The following issues are currently open: