Comments (3)
Please post your GitHub Actions workflow.
from github-action.
Thank you for providing your GitHub Actions workflow, which shows that you are running Cypress on a self-hosted runner using a shell command. You are not using the Cypress JavaScript GitHub Action cypress-io/github-action
:
runs-on: [self-hosted, ephemeral, '${{ inputs.RUNNER }}']
...
steps:
npx cypress run --spec 'cypress/e2e/features/${{ inputs.FEATURE }}.feature' --browser ${{ inputs.BROWSER }} -e StartAPP='${{ inputs.StartAPP }}',ENV='${{ inputs.ENV }}',RunFrom='CI'
This issue list is for reporting bugs in cypress-io/github-action
or for enhancement requests to the action. It is not for general issues regarding using Cypress under GitHub Actions. Your problem belongs into the second category and so this issue needs to be closed.
I hope you can find somebody on Discord to help you. You might need to share the test code which is failing. Good luck!
from github-action.
Hello @MikeMcC399 , Thanks for the response, much appreciable!
Here is the GitHub Actions workflow *.yaml file
name: Run Feature Test
on:
workflow_dispatch:
inputs:
ENV:
type: choice
description: 'Environment'
required: true
default: DEV
options:
- DEV
RUNNER:
type: choice
description: runner
required: true
default: deploy-eks
options:
- self-hosted
- ephemeral
- deploy-eks
FEATURE:
type: choice
description: feature to be run
required: true
options:
- UserProfile
- Users
BROWSER:
type: choice
description: browser
required: true
headed: true
default: chrome
options:
- chrome
- electron
- firefox
StartAPP:
type: choice
description: Starting Application
required: true
default: app
options:
- app
jobs:
cypress-test-run:
name: Execute Test-${{ inputs.FEATURE }}
runs-on: [self-hosted, ephemeral, '${{ inputs.RUNNER }}']
container:
image: cypress/included:13.10.0
options: -u root -e AWS_STS_REGIONAL_ENDPOINTS -e AWS_DEFAULT_REGION -e AWS_REGION -e AWS_ROLE_ARN -e AWS_WEB_IDENTITY_TOKEN_FILE
volumes:
- /var/run//test/123/secrets/eks.amazonaws.com/serviceaccount:/var/run/test/123/secrets/eks.amazonaws.com/serviceaccount
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get AWS Secrets
id: secrets
uses: ./.github/actions/fetchAWS-Secrets
- name: Build and Run Tests
shell: bash
run: |
export $SECRETS_ENV
npm ci
npx cypress run --spec 'cypress/e2e/features/${{ inputs.FEATURE }}.feature' --browser ${{ inputs.BROWSER }} -e StartAPP='${{ inputs.StartAPP }}',ENV='${{ inputs.ENV }}',RunFrom='CI'
- name: Upload json
uses: actions/upload-artifact@v4
if: always()
with:
name: json-report-${{ inputs.FEATURE }}
path: |
cypress/cucumber-json/${{ inputs.FEATURE }}.cucumber.json
cypress/screenshots/
generateReport:
name: Generate HTML Report
needs: cypress-test-run
if: always()
runs-on: ${{ inputs.RUNNER }}
container:
image: cypress/included:13.6.0
options: -u root -e AWS_STS_REGIONAL_ENDPOINTS -e AWS_DEFAULT_REGION -e AWS_REGION -e AWS_ROLE_ARN -e AWS_WEB_IDENTITY_TOKEN_FILE
volumes:
- /var/run/secrets/eks.amazonaws.com/serviceaccount:/var/run/secrets/eks.amazonaws.com/serviceaccount
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setting Permissions
run: |
chmod -R a+rwx /__w/app/app
npm ci
- uses: actions/download-artifact@v4
with:
path: /__w/app/app/cypress/cucumber-json
- name: Display structure of downloaded files
run: ls -R
- name: Generate Report
uses: ./.github/actions/generate-Report
from github-action.
Related Issues (20)
- 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 6
- Add thread_ts as an optional parameter to use threads as part of the cypress cloud slack integration HOT 4
- Cypress run starts but does not run any tests HOT 9
- Cypress.env returns undefined [Github Actions] HOT 11
- Cypress fails to connect to devTools after first test HOT 13
- `project` not working HOT 5
- adding user 1001 throws EACCES permission issue HOT 17
- Sporadic cypress binary cache failure of example-basic-pnpm workflow on Ubuntu HOT 5
- Cancel test run on Cypress cloud when action is cancelled HOT 1
- Cypress in Github Actions won't feed env variables to Oxygen server HOT 4
- Unable to run the cypress-io action when specifying a repo on the checkout HOT 2
- Geolocation error on final command of final test HOT 6
- Auto-Detect PR error on Workflow dispatch, resource not accessible HOT 4
- Receiving `Error: Cannot find module 'cypress'` error in GitHub actions HOT 8
- wait-on failing because of MaxRedirectsError HOT 5
- Define Cypress custom script from the inputs HOT 2
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.