@cypress/github-action 5.8.0 → 5.8.1
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 +17 -17
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -394,7 +394,7 @@ jobs:
|
|
|
394
394
|
# let's make sure our "app" works on several versions of Node
|
|
395
395
|
strategy:
|
|
396
396
|
matrix:
|
|
397
|
-
node: [16, 18,
|
|
397
|
+
node: [16, 18, 20]
|
|
398
398
|
name: E2E on Node v${{ matrix.node }}
|
|
399
399
|
steps:
|
|
400
400
|
- name: Setup Node
|
|
@@ -457,7 +457,7 @@ See [Auto Cancellation](https://docs.cypress.io/guides/cloud/smart-orchestration
|
|
|
457
457
|
|
|
458
458
|
### Artifacts
|
|
459
459
|
|
|
460
|
-
If you don't record the test run on Cypress Cloud, you can still store generated videos and screenshots as CI artifacts. See
|
|
460
|
+
If you don't record the test run on Cypress Cloud, you can still store generated videos and screenshots as CI artifacts. See the workflow example below.
|
|
461
461
|
|
|
462
462
|
```yml
|
|
463
463
|
name: Artifacts
|
|
@@ -469,23 +469,19 @@ jobs:
|
|
|
469
469
|
steps:
|
|
470
470
|
- uses: actions/checkout@v3
|
|
471
471
|
- uses: cypress-io/github-action@v5
|
|
472
|
-
# after the test run completes
|
|
473
|
-
# store videos and any screenshots
|
|
474
|
-
# NOTE: screenshots will be generated only if E2E test failed
|
|
475
|
-
# thus we store screenshots only on failures
|
|
476
|
-
# Alternative: create and commit an empty cypress/screenshots folder
|
|
477
|
-
# to always have something to upload
|
|
472
|
+
# after the test run completes store videos and any screenshots
|
|
478
473
|
- uses: actions/upload-artifact@v3
|
|
479
|
-
|
|
474
|
+
# add the line below to store screenshots only on failures
|
|
475
|
+
# if: failure()
|
|
480
476
|
with:
|
|
481
477
|
name: cypress-screenshots
|
|
482
478
|
path: cypress/screenshots
|
|
483
|
-
|
|
479
|
+
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
|
|
484
480
|
- uses: actions/upload-artifact@v3
|
|
485
|
-
if: always()
|
|
486
481
|
with:
|
|
487
482
|
name: cypress-videos
|
|
488
483
|
path: cypress/videos
|
|
484
|
+
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
|
|
489
485
|
```
|
|
490
486
|
|
|
491
487
|
### Quiet flag
|
|
@@ -1084,7 +1080,7 @@ jobs:
|
|
|
1084
1080
|
|
|
1085
1081
|
### Yarn Plug'n'Play
|
|
1086
1082
|
|
|
1087
|
-
When using [Yarn Modern](https://yarnpkg.com/) (Yarn 2 and later) with [Plug'n'Play](https://yarnpkg.com/features/pnp) enabled, you will need to use the `command` parameter to run
|
|
1083
|
+
When using [Yarn Modern](https://yarnpkg.com/) (Yarn 2 and later) with [Plug'n'Play](https://yarnpkg.com/features/pnp) enabled, you will need to use the `command` parameter to run `yarn` instead of [npx](https://docs.npmjs.com/cli/v9/commands/npx).
|
|
1088
1084
|
|
|
1089
1085
|
```yaml
|
|
1090
1086
|
name: example-yarn-modern-pnp
|
|
@@ -1100,7 +1096,7 @@ jobs:
|
|
|
1100
1096
|
with:
|
|
1101
1097
|
working-directory: examples/yarn-modern-pnp
|
|
1102
1098
|
install-command: yarn install
|
|
1103
|
-
command: yarn
|
|
1099
|
+
command: yarn cypress run
|
|
1104
1100
|
```
|
|
1105
1101
|
|
|
1106
1102
|
[](https://github.com/cypress-io/github-action/actions/workflows/example-yarn-modern-pnp.yml)
|
|
@@ -1145,7 +1141,7 @@ jobs:
|
|
|
1145
1141
|
# let's make sure our "app" works on several versions of Node
|
|
1146
1142
|
strategy:
|
|
1147
1143
|
matrix:
|
|
1148
|
-
node: [16, 18,
|
|
1144
|
+
node: [16, 18, 20]
|
|
1149
1145
|
name: E2E on Node v${{ matrix.node }}
|
|
1150
1146
|
steps:
|
|
1151
1147
|
- name: Setup Node
|
|
@@ -1179,7 +1175,7 @@ jobs:
|
|
|
1179
1175
|
runs-on: ubuntu-22.04
|
|
1180
1176
|
strategy:
|
|
1181
1177
|
matrix:
|
|
1182
|
-
node: [16, 18,
|
|
1178
|
+
node: [16, 18, 20]
|
|
1183
1179
|
name: E2E on Node v${{ matrix.node }}
|
|
1184
1180
|
steps:
|
|
1185
1181
|
- uses: actions/setup-node@v3
|
|
@@ -1269,6 +1265,8 @@ See [cypress-gh-action-example](https://github.com/bahmutov/cypress-gh-action-ex
|
|
|
1269
1265
|
<!-- prettier-ignore-start -->
|
|
1270
1266
|
| Name | Description |
|
|
1271
1267
|
| ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
1268
|
+
| [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 |
|
|
1269
|
+
| [cypress-io/cypress-realworld-app](https://github.com/cypress-io/cypress-realworld-app) | A real-world example payment application. Uses GitHub Actions and CircleCI. |
|
|
1272
1270
|
| [cypress-gh-action-small-example](https://github.com/bahmutov/cypress-gh-action-small-example) (legacy) | Runs tests and records them on Cypress Cloud |
|
|
1273
1271
|
| [cypress-gh-action-example](https://github.com/bahmutov/cypress-gh-action-example) (legacy) | Uses Yarn, and runs in parallel on several versions of Node, different browsers, and more |
|
|
1274
1272
|
| [cypress-gh-action-monorepo](https://github.com/bahmutov/cypress-gh-action-monorepo) | Splits install and running tests commands, runs Cypress from sub-folder |
|
|
@@ -1483,7 +1481,8 @@ jobs:
|
|
|
1483
1481
|
Node.js is required to run this action. The current version `v5` supports:
|
|
1484
1482
|
|
|
1485
1483
|
- **Node.js** 16.x
|
|
1486
|
-
- **Node.js** 18.x
|
|
1484
|
+
- **Node.js** 18.x
|
|
1485
|
+
- **Node.js** 20.x and above
|
|
1487
1486
|
|
|
1488
1487
|
and is generally aligned with [Node.js's release schedule](https://github.com/nodejs/Release).
|
|
1489
1488
|
|
|
@@ -1493,6 +1492,7 @@ See [Releases](https://github.com/cypress-io/github-action/releases) for full de
|
|
|
1493
1492
|
|
|
1494
1493
|
| Version | Changes |
|
|
1495
1494
|
| ------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1495
|
+
| v5.8.1 | Examples remove Node.js 19. End of support for Node.js 19. |
|
|
1496
1496
|
| v5.6.2 | Examples add Node.js 20. End of support and removal of Node.js 14 examples. |
|
|
1497
1497
|
| v5.2.0 | Examples add Node.js 19. |
|
|
1498
1498
|
| v5.0.0 | Examples add Node.js 18 and remove Node.js 12. |
|
|
@@ -1503,7 +1503,7 @@ See [Releases](https://github.com/cypress-io/github-action/releases) for full de
|
|
|
1503
1503
|
| v2 | Cypress runs using the [Module API](https://docs.cypress.io/guides/guides/module-api) instead of being started via the command line. |
|
|
1504
1504
|
| v1 | *This version is no longer runnable in GitHub due to security changes.* |
|
|
1505
1505
|
|
|
1506
|
-
*Note: [GitHub announced](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/) their plan to disable `save-state` and `set-output` commands
|
|
1506
|
+
*Note: [GitHub announced](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/) their plan to disable `save-state` and `set-output` commands. This will prevent [cypress-io/github-action](https://github.com/cypress-io/github-action) version [v4.2.1](https://github.com/cypress-io/github-action/releases/tag/v4.2.1) and earlier from running, since they use `set-output`. Affected users should update to using `v5` of the [cypress-io/github-action](https://github.com/cypress-io/github-action) action.*
|
|
1507
1507
|
|
|
1508
1508
|
## Contributing
|
|
1509
1509
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cypress/github-action",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.1",
|
|
4
4
|
"description": "GitHub Action for running Cypress end-to-end and component tests",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"supports-color": "9.3.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@types/node": "18.16.
|
|
49
|
+
"@types/node": "18.16.16",
|
|
50
50
|
"@vercel/ncc": "0.36.1",
|
|
51
51
|
"husky": "8.0.3",
|
|
52
52
|
"markdown-link-check": "3.11.1",
|