You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -384,7 +384,7 @@ For more information, visit [the Cypress command-line docs](https://on.cypress.i
384
384
385
385
### Project
386
386
387
-
Specify the [project to run](https://docs.cypress.io/guides/guides/command-line.html#cypress-run-project-lt-project-path-gt) with `project` parameter
387
+
Specify the [project to run](https://on.cypress.io/command-line#cypress-run-project-lt-project-path-gt) with the `project` parameter
388
388
389
389
```yml
390
390
name: Cypress tests
@@ -399,10 +399,14 @@ jobs:
399
399
- name: Cypress run
400
400
uses: cypress-io/github-action@v6
401
401
with:
402
-
project: ./some/nested/folder
402
+
project: ./test-subdirectory
403
403
```
404
404
405
-
For more information, visit [the Cypress command-line docs](https://on.cypress.io/command-line#cypress-run-project-lt-project-path-gt).
405
+
The `project` parameter may be used to pass on the location of a sub-directory containing a Cypress configuration file and Cypress tests specs. For more information, visit [the Cypress command-line docs](https://on.cypress.io/command-line#cypress-run-project-lt-project-path-gt).
406
+
407
+
A package manager lock file, including Cypress, must be provided in the root of the repository so that the action is able to [install Cypress](#installation).
408
+
409
+
If the parameter [working-directory](#working-directory) is also defined, then this is the location to place the package manager lock file, and the project directory would be a subdirectory of the [working-directory](#working-directory). The `project` parameter location may not be above the level of a specified [working-directory](#working-directory) in the file hierarchy.
406
410
407
411
### Record test results on Cypress Cloud
408
412
@@ -1091,8 +1095,8 @@ repo/
1091
1095
fixtures/
1092
1096
support/
1093
1097
cypress.config.js
1094
-
package.json
1095
-
package-lock.json
1098
+
package.json
1099
+
package-lock.json
1096
1100
```
1097
1101
1098
1102
We use `working-directory: app-test` to match the above example directory structure:
@@ -1574,7 +1578,7 @@ There is no equivalent action parameter for the CLI options `help`, `key`, `--no
1574
1578
1575
1579
### Installation
1576
1580
1577
-
This action installs local dependencies using lock files. Ensure that exactly one type of lock file is used for each project or working-directory from the following supported package managers:
1581
+
This action installs local dependencies using lock files. Ensure that exactly one type of lock file is used at the root of the repo or in each working-directory of a monorepo from the following supported package managers:
0 commit comments