@cypress/github-action 6.10.0 → 6.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -31,6 +31,7 @@ The following examples demonstrate the actions' functions.
31
31
  - Select [action version](#action-version)
32
32
  - Run tests in a given [browser](#browser)
33
33
  - using [Chrome](#chrome)
34
+ - using [Chrome for Testing](#chrome-for-testing)
34
35
  - using [Firefox](#firefox)
35
36
  - using [Edge](#edge)
36
37
  - using [headed mode](#headed)
@@ -178,6 +179,29 @@ jobs:
178
179
 
179
180
  [![Chrome example](https://github.com/cypress-io/github-action/actions/workflows/example-chrome.yml/badge.svg)](.github/workflows/example-chrome.yml)
180
181
 
182
+ ### Chrome for Testing
183
+
184
+ To install [Google Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing/), specify a partial or full numerical Chrome for Testing version using [browser-actions/setup-chrome](https://github.com/browser-actions/setup-chrome). Refer to [Chrome for Testing availability](https://googlechromelabs.github.io/chrome-for-testing/) for current versions or [JSON API endpoints](https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints) for all available versions.
185
+
186
+ ```yml
187
+ name: Chrome for Testing
188
+ on: push
189
+ jobs:
190
+ chrome:
191
+ runs-on: ubuntu-24.04
192
+ name: E2E on Chrome for Testing
193
+ steps:
194
+ - uses: actions/checkout@v4
195
+ - uses: browser-actions/setup-chrome@v1
196
+ with:
197
+ chrome-version: 137
198
+ - uses: cypress-io/github-action@v6
199
+ with:
200
+ browser: chrome-for-testing
201
+ ```
202
+
203
+ [![Chrome for Testing example](https://github.com/cypress-io/github-action/actions/workflows/example-chrome-for-testing.yml/badge.svg)](.github/workflows/example-chrome-for-testing.yml)
204
+
181
205
  ### Firefox
182
206
 
183
207
  ```yml
@@ -360,7 +384,7 @@ For more information, visit [the Cypress command-line docs](https://on.cypress.i
360
384
 
361
385
  ### Project
362
386
 
363
- 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
364
388
 
365
389
  ```yml
366
390
  name: Cypress tests
@@ -375,10 +399,14 @@ jobs:
375
399
  - name: Cypress run
376
400
  uses: cypress-io/github-action@v6
377
401
  with:
378
- project: ./some/nested/folder
402
+ project: ./test-subdirectory
379
403
  ```
380
404
 
381
- 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.
382
410
 
383
411
  ### Record test results on Cypress Cloud
384
412
 
@@ -1067,8 +1095,8 @@ repo/
1067
1095
  fixtures/
1068
1096
  support/
1069
1097
  cypress.config.js
1070
- package.json
1071
- package-lock.json
1098
+ package.json
1099
+ package-lock.json
1072
1100
  ```
1073
1101
 
1074
1102
  We use `working-directory: app-test` to match the above example directory structure:
@@ -1483,7 +1511,6 @@ jobs:
1483
1511
  | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
1484
1512
  | [cypress-io/cypress-example-kitchensink](https://github.com/cypress-io/cypress-example-kitchensink) | Runs every API command in Cypress using various CI platforms including GitHub Actions |
1485
1513
  | [cypress-io/cypress-realworld-app](https://github.com/cypress-io/cypress-realworld-app) | A real-world example payment application. Uses GitHub Actions and CircleCI. |
1486
- | [cypress-gh-action-monorepo](https://github.com/bahmutov/cypress-gh-action-monorepo) | Splits install and running tests commands, runs Cypress from sub-folder |
1487
1514
 
1488
1515
  ## Migration
1489
1516
 
@@ -1551,7 +1578,7 @@ There is no equivalent action parameter for the CLI options `help`, `key`, `--no
1551
1578
 
1552
1579
  ### Installation
1553
1580
 
1554
- 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:
1555
1582
 
1556
1583
  | Lock file | Package Manager | Installation command |
1557
1584
  | ------------------- | ------------------------------------------------------------------------------------------------ | -------------------------------- |
package/dist/index.js CHANGED
@@ -39393,7 +39393,7 @@ function expand(str, isTop) {
39393
39393
  var isOptions = m.body.indexOf(',') >= 0;
39394
39394
  if (!isSequence && !isOptions) {
39395
39395
  // {a},b}
39396
- if (m.post.match(/,.*\}/)) {
39396
+ if (m.post.match(/,(?!,).*\}/)) {
39397
39397
  str = m.pre + '{' + m.body + escClose + m.post;
39398
39398
  return expand(str);
39399
39399
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress/github-action",
3
- "version": "6.10.0",
3
+ "version": "6.10.2",
4
4
  "description": "GitHub Action for running Cypress end-to-end and component tests",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -52,16 +52,16 @@
52
52
  "supports-color": "9.3.1"
53
53
  },
54
54
  "devDependencies": {
55
- "@eslint/js": "9.26.0",
56
- "@stylistic/eslint-plugin": "4.4.0",
57
- "@types/node": "22.13.10",
55
+ "@eslint/js": "9.31.0",
56
+ "@stylistic/eslint-plugin": "5.2.0",
57
+ "@types/node": "24.0.15",
58
58
  "@vercel/ncc": "0.38.1",
59
- "eslint": "9.26.0",
60
- "eslint-plugin-cypress": "4.3.0",
61
- "globals": "16.0.0",
59
+ "eslint": "9.31.0",
60
+ "eslint-plugin-cypress": "5.1.0",
61
+ "globals": "16.3.0",
62
62
  "husky": "9.1.7",
63
63
  "markdown-link-check": "3.13.7",
64
- "prettier": "3.5.3"
64
+ "prettier": "3.6.0"
65
65
  },
66
66
  "publishConfig": {
67
67
  "access": "public"