@cypress/github-action 6.4.0 → 6.5.0

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.
Files changed (2) hide show
  1. package/README.md +10 -11
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -117,14 +117,14 @@ See the example project [component-tests](examples/component-tests/) and the [ex
117
117
 
118
118
  **Best practice:**
119
119
 
120
- Our examples specify using branch [v5](https://github.com/cypress-io/github-action/tree/v5) which is the action's recommended major version:
120
+ Our examples specify using branch [v6](https://github.com/cypress-io/github-action/tree/v6) which is the action's recommended major version:
121
121
 
122
122
  ```yml
123
123
  - name: Cypress run
124
124
  uses: cypress-io/github-action@v6
125
125
  ```
126
126
 
127
- When using `cypress-io/github-action@v6` from your workflow file, you will automatically use the latest [tag](https://github.com/cypress-io/github-action/tags) from branch [v5](https://github.com/cypress-io/github-action/tree/v5).
127
+ When using `cypress-io/github-action@v6` from your workflow file, you will automatically use the latest [tag](https://github.com/cypress-io/github-action/tags) from branch [v6](https://github.com/cypress-io/github-action/tree/v6).
128
128
 
129
129
  Alternatively, to mitigate unforeseen breaks, bind to a specific [tag](https://github.com/cypress-io/github-action/tags), for example:
130
130
 
@@ -239,6 +239,8 @@ Include `options: --user 1001` to avoid permissions issues.
239
239
 
240
240
  Refer to [cypress-io/cypress-docker-images](https://github.com/cypress-io/cypress-docker-images) for further information about using Cypress Docker images. Cypress offers the [Cypress Docker Factory](https://github.com/cypress-io/cypress-docker-images/tree/master/factory) to generate additional Docker images with selected components and versions.
241
241
 
242
+ [![Docker example](https://github.com/cypress-io/github-action/workflows/example-docker/badge.svg?branch=master)](.github/workflows/example-docker.yml)
243
+
242
244
  ### Env
243
245
 
244
246
  Specify the env argument with `env` parameter
@@ -408,7 +410,7 @@ jobs:
408
410
  # let's make sure our "app" works on several versions of Node
409
411
  strategy:
410
412
  matrix:
411
- node: [16, 18, 20]
413
+ node: [18, 20]
412
414
  name: E2E on Node v${{ matrix.node }}
413
415
  steps:
414
416
  - name: Setup Node
@@ -450,8 +452,6 @@ jobs:
450
452
  runs-on: ubuntu-22.04
451
453
  name: E2E
452
454
  steps:
453
- - name: Setup Node
454
- uses: actions/setup-node@v3
455
455
 
456
456
  - name: Checkout
457
457
  uses: actions/checkout@v3
@@ -1133,7 +1133,7 @@ jobs:
1133
1133
  # let's make sure our "app" works on several versions of Node
1134
1134
  strategy:
1135
1135
  matrix:
1136
- node: [16, 18, 20]
1136
+ node: [18, 20]
1137
1137
  name: E2E on Node v${{ matrix.node }}
1138
1138
  steps:
1139
1139
  - name: Setup Node
@@ -1167,7 +1167,7 @@ jobs:
1167
1167
  runs-on: ubuntu-22.04
1168
1168
  strategy:
1169
1169
  matrix:
1170
- node: [16, 18, 20]
1170
+ node: [18, 20]
1171
1171
  name: E2E on Node v${{ matrix.node }}
1172
1172
  steps:
1173
1173
  - uses: actions/setup-node@v3
@@ -1464,7 +1464,7 @@ jobs:
1464
1464
 
1465
1465
  ### Automatic PR number & URL detection
1466
1466
 
1467
- When recording runs to Cypress Cloud, the PR number and URL can be automatically detected if you pass `GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}`
1467
+ When recording runs to Cypress Cloud, the PR number and URL can be automatically detected if you pass `GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}`
1468
1468
  via the workflow `env`. When set, this value enables the Action to perform additional logic that grabs the related PR number and URL (if they
1469
1469
  exist) and sets them in the environment variables `CYPRESS_PULL_REQUEST_ID` and `CYPRESS_PULL_REQUEST_URL`, respectively.
1470
1470
  * See Cypress' documentation on [CI Build Information](https://on.cypress.io/guides/continuous-integration/introduction#CI-Build-Information)
@@ -1497,7 +1497,7 @@ PR that triggered the workflow.
1497
1497
 
1498
1498
  #### Triggering event: `push`
1499
1499
 
1500
- When a commit on a branch without a PR is made, the Cypress GitHub Action checks to see if the commit that triggered the workflow has a
1500
+ When a commit on a branch without a PR is made, the Cypress GitHub Action checks to see if the commit that triggered the workflow has a
1501
1501
  related PR. If the commit exists in any other PRs, it's considered a related PR. When there are related PRs, we grab the first related PR
1502
1502
  and use that PR's number and URL for `CYPRESS_PULL_REQUEST_ID` and `CYPRESS_PULL_REQUEST_URL`, respectively.
1503
1503
 
@@ -1509,7 +1509,6 @@ If no related PR is detected, `CYPRESS_PULL_REQUEST_ID` and `CYPRESS_PULL_REQUES
1509
1509
 
1510
1510
  Node.js is required to run this action. The recommended version `v6` supports:
1511
1511
 
1512
- - **Node.js** 16.x
1513
1512
  - **Node.js** 18.x
1514
1513
  - **Node.js** 20.x and above
1515
1514
 
@@ -1521,7 +1520,7 @@ and is generally aligned with [Node.js's release schedule](https://github.com/no
1521
1520
 
1522
1521
  [![Node versions example](https://github.com/cypress-io/github-action/workflows/example-node-versions/badge.svg?branch=master)](.github/workflows/example-node-versions.yml)
1523
1522
 
1524
- Cypress itself runs with a fixed Node.js version specified by the [runs.using](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions) parameter of [action.yml](action.yml). `github-action@v5` uses `node16` and `github-action@v6` uses `node20`.
1523
+ Cypress itself runs with a fixed Node.js version specified by the [runs.using](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions) parameter of [action.yml](action.yml). `github-action@v6` uses `node20`.
1525
1524
 
1526
1525
  ## Changelog
1527
1526
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress/github-action",
3
- "version": "6.4.0",
3
+ "version": "6.5.0",
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,11 +46,11 @@
46
46
  "supports-color": "9.3.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@types/node": "20.5.7",
49
+ "@types/node": "20.5.9",
50
50
  "@vercel/ncc": "0.36.1",
51
51
  "husky": "8.0.3",
52
52
  "markdown-link-check": "3.11.1",
53
- "prettier": "3.0.2"
53
+ "prettier": "3.0.3"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"