Comments (5)
Cypress no longer supports Node.js 16
. You need to upgrade to
- Node.js 18.x or
- Node.js 20.x and above
The screenshot of your yml file is not complete and does not show any call to cypress-io/github-action
.
Instead of pasting a screenshot, it would be better if you pasted the text of the yml file, including the call to cypress-io/github-action
. You can format the code using triple backticks like this:
```yml
name: example-basic
# This workflow represents a set of basic End-to-End tests
on:
push:
branches:
- 'master'
and so on
```
We may also need to see your log files.
from github-action.
Hi @MikeMcC399 , Below is my yml
name: Smoke Action
on:
push:
branches: [main, master]
schedule:
- cron: "0 * * * *"
jobs:
e2e:
timeout-minutes: 60
runs-on: "Runner supported by organization"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18"
- name: set registry
shell: bash
run: npm config set registry https://repo1.uhc.com/artifactory/api/npm/npm-virtual
- name: set strict-ssl to false
shell: bash
run: npm config set strict-ssl false
- name: Install dependencies
shell: bash
run: |
npm install
- name: env variables & Run Tests
shell: bash
run: |
export secretVariable=${{ secrets.keyname }} // adding some secret keys
npm run Scriptname
- name: Output test failure
if: success() || failure()
run: |
echo "failed_run=${true}" >> $GITHUB_OUTPUT
- name: Uploading Artifacts HTML Report
uses: actions/upload-artifact@v2
if: always()
with:
name: HTML-Report
path: cypress/reports/html
retention-days: 14
from github-action.
Thank you for providing your complete yml
file. Your workflow apparently is not using the Cypress GitHub Action. An example of the use of the action would be
name: End-to-end tests
on: push
jobs:
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
# Install npm dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v6
I understand from your workflow, that you call Cypress using the step
- name: env variables & Run Tests
shell: bash
run: |
export secretVariable=${{ secrets.keyname }} // adding some secret keys
npm run Scriptname
This is outside of the scope of this issue list, which is for reporting bugs or making enhancement requests for the Cypress JavaScript GitHub Action cypress-io/github-action
. The issue list is not for general use of GitHub Actions with Cypress without the action.
The only comment I can give you is that you have outdated versions of other JavaScript GitHub Actions. You might want to update these. I don't expect this would resolve your problem though:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/upload-artifact@v2
from github-action.
@MikeMcC399 as per you suggession, I've upgraded node version and I tried to use cypress-io/github-action@v6 but then job failed saying "cypress-io/github-action@v6" is not allowed to be used within Organization.
So our company Actions marketplace, and I found one for cypress. The issue I faced by using this action is that it initially running the spec file that matches the patten specified in scriptName inside package.json, followed by running all the spec files that are within repository.
In logs I can see it searched for below pattern and runs all the scripts.
│ Searched: cypress/e2e/**/*.cy.{js,jsx,ts,tsx} │
from github-action.
You can find many examples in the README and https://github.com/cypress-io/github-action/tree/master/.github/workflows about how to use cypress-io/github-action
successfully.
Normally, if you are using cypress-io/github-action
as it is intended, you would not be using a script to run Cypress.
example-config.ym shows how to select specs.
I am going to close this issue now, as it does not concern any bug in the action.
If you think you have found a bug when using the action, please open a new issue and provide your new workflow.
from github-action.
Related Issues (20)
- Pull docker image from Amazon ECR HOT 2
- Fixture file not found when running on self-hosted runner HOT 5
- Node 20.6+ `--env-file` flag in `NODE_OPTIONS` is not allowed HOT 5
- new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`); HOT 5
- Expandable failed tests in summary
- Github actions - npm install flags HOT 3
- Xvfb missing HOT 7
- Node.js 16 deprecations in triage workflows HOT 4
- Test issue HOT 1
- Possibility to split summary results on spec level
- Commit message missing from Cypress Cloud when cypress/included container is used in GitHub Actions HOT 7
- Action stuck at Warning: vkCreateInstance: Found no drivers! HOT 15
- Specify specs and readonly configuration (chromeWebSecurity) per matrix container HOT 4
- Cypress binary randomly missing with pnpm HOT 13
- App frontend is not reachable, on random test runs HOT 5
- pnpm workspaces workflow shows "no status" HOT 2
- Add workspace support for pnpm HOT 10
- Save Test Results to File or Action Output HOT 5
- Add thread_ts as an optional parameter to use threads as part of the cypress cloud slack integration HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-action.