-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find config-file #1046
Comments
The most likely reason for your problem would be if you are using the "Caution: using the action parameter command causes multiple other parameters to be ignored including: auto-cancel-after-failures, browser, ci-build-id, command-prefix, component, config, config-file, env, group, headed, parallel, project, publish-summary, quiet, record, spec and tag." If that is not the case, then please post your workflow. Note that
is not an error. It is an informational message which is unrelated to your problem. |
Thanks for the comment @MikeMcC399 . I am not using the command parameter. Here is my workflow: name: Cypress Tests
on:
push:
branches:
- 'main'
- 'feature**'
workflow_dispatch:
inputs:
branch:
config: 'The config to use'
required: true
default: "staging"
jobs:
test:
name: Cypress run
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cypress run
uses: cypress-io/github-action@v6
with:
config-file: myConfig.json
spec: |
**/*Catalog.cy.js
**/*Catalog.cy.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} I had the config-file replaced with the config parameter locally to try and bypass this problem |
Which version of Cypress are you using? |
"cypress": "^13.3.0", |
Thanks for confirming your Cypress version! There is an error in the README > Config file documentation as far as using the parameter According to the Cypress documentation References > Configuration > Configuration File:
In Cypress legacy configurations it used to be You should make sure that you are passing a |
Let us know if you are still having difficulties after checking out my previous post #1046 (comment) ^^ |
Totally, I'm still trying to get this to work, so I'll be working through the issue on my end now. Per your above explanation, it sounds like that is the issue I am hitting. |
The above documentation fix resolved this for me. Thank you @MikeMcC399 ! |
In my local setup, I have cypress setup:
reponame/cypress/config/myConfig.json
I've tried the
config-file
option, including specifying the directories, subdirectories, etc.e.g.,
and nothing seems to resolve the file. I keep getting this error:
DevTools listening on ws://127.0.0.1:42869/devtools/browser/765dff37-7f7b-490f-9a4e-b18bdb5c1079 Could not find a Cypress configuration file. We looked but did not find a myConfig.json file in this folder: /home/runner/work/reponame/reponame
What is the recommended setup for config files in this runner? Where is the runner starting from in terms of its local directory? e.g. repo root?
The text was updated successfully, but these errors were encountered: