Skip to content

Commit 82c440e

Browse files
authored
docs: extend project parameter description (#1504)
1 parent b198e20 commit 82c440e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ For more information, visit [the Cypress command-line docs](https://on.cypress.i
384384

385385
### Project
386386

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
388388

389389
```yml
390390
name: Cypress tests
@@ -399,10 +399,14 @@ jobs:
399399
- name: Cypress run
400400
uses: cypress-io/github-action@v6
401401
with:
402-
project: ./some/nested/folder
402+
project: ./test-subdirectory
403403
```
404404

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.
406410

407411
### Record test results on Cypress Cloud
408412

@@ -1091,8 +1095,8 @@ repo/
10911095
fixtures/
10921096
support/
10931097
cypress.config.js
1094-
package.json
1095-
package-lock.json
1098+
package.json
1099+
package-lock.json
10961100
```
10971101

10981102
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
15741578

15751579
### Installation
15761580

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:
15781582

15791583
| Lock file | Package Manager | Installation command |
15801584
| ------------------- | ------------------------------------------------------------------------------------------------ | -------------------------------- |

0 commit comments

Comments
 (0)