@cypress/github-action 6.7.2 → 6.7.3
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 +11 -2
- package/dist/index.js +9 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1127,7 +1127,8 @@ jobs:
|
|
|
1127
1127
|
### pnpm
|
|
1128
1128
|
|
|
1129
1129
|
The package manager `pnpm` is not pre-installed in [GitHub Actions runner images](https://github.com/actions/runner-images) (unlike `npm` and `yarn`) and so it must be installed in a separate workflow step (see below). If the action finds a `pnpm-lock.yaml` file, it uses the [pnpm](https://pnpm.io/cli/install) command `pnpm install --frozen-lockfile` by default to install dependencies.
|
|
1130
|
-
|
|
1130
|
+
|
|
1131
|
+
The example below follows [pnpm recommendations](https://pnpm.io/continuous-integration#github-actions) for installing pnpm and caching the [pnpm store](https://pnpm.io/cli/store).
|
|
1131
1132
|
|
|
1132
1133
|
```yaml
|
|
1133
1134
|
name: example-basic-pnpm
|
|
@@ -1139,7 +1140,15 @@ jobs:
|
|
|
1139
1140
|
- name: Checkout
|
|
1140
1141
|
uses: actions/checkout@v4
|
|
1141
1142
|
- name: Install pnpm
|
|
1142
|
-
|
|
1143
|
+
uses: pnpm/action-setup@v4
|
|
1144
|
+
with:
|
|
1145
|
+
version: 9
|
|
1146
|
+
- name: Install Node.js
|
|
1147
|
+
uses: actions/setup-node@v4
|
|
1148
|
+
with:
|
|
1149
|
+
node-version: 20
|
|
1150
|
+
cache: 'pnpm'
|
|
1151
|
+
cache-dependency-path: examples/basic-pnpm/pnpm-lock.yaml
|
|
1143
1152
|
- name: Cypress run
|
|
1144
1153
|
uses: cypress-io/github-action@v6
|
|
1145
1154
|
with:
|
package/dist/index.js
CHANGED
|
@@ -55842,7 +55842,12 @@ const util = __nccwpck_require__(3837);
|
|
|
55842
55842
|
const braces = __nccwpck_require__(610);
|
|
55843
55843
|
const picomatch = __nccwpck_require__(8569);
|
|
55844
55844
|
const utils = __nccwpck_require__(479);
|
|
55845
|
-
|
|
55845
|
+
|
|
55846
|
+
const isEmptyString = v => v === '' || v === './';
|
|
55847
|
+
const hasBraces = v => {
|
|
55848
|
+
const index = v.indexOf('{');
|
|
55849
|
+
return index > -1 && v.indexOf('}', index) > -1;
|
|
55850
|
+
};
|
|
55846
55851
|
|
|
55847
55852
|
/**
|
|
55848
55853
|
* Returns an array of strings that match one or more glob patterns.
|
|
@@ -56283,7 +56288,7 @@ micromatch.parse = (patterns, options) => {
|
|
|
56283
56288
|
|
|
56284
56289
|
micromatch.braces = (pattern, options) => {
|
|
56285
56290
|
if (typeof pattern !== 'string') throw new TypeError('Expected a string');
|
|
56286
|
-
if ((options && options.nobrace === true) ||
|
|
56291
|
+
if ((options && options.nobrace === true) || !hasBraces(pattern)) {
|
|
56287
56292
|
return [pattern];
|
|
56288
56293
|
}
|
|
56289
56294
|
return braces(pattern, options);
|
|
@@ -56302,6 +56307,8 @@ micromatch.braceExpand = (pattern, options) => {
|
|
|
56302
56307
|
* Expose micromatch
|
|
56303
56308
|
*/
|
|
56304
56309
|
|
|
56310
|
+
// exposed for tests
|
|
56311
|
+
micromatch.hasBraces = hasBraces;
|
|
56305
56312
|
module.exports = micromatch;
|
|
56306
56313
|
|
|
56307
56314
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cypress/github-action",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.3",
|
|
4
4
|
"description": "GitHub Action for running Cypress end-to-end and component tests",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "https://github.com/cypress-io/github-action.git"
|
|
22
|
+
"url": "git+https://github.com/cypress-io/github-action.git"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
25
25
|
"actions",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"supports-color": "9.3.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@types/node": "20.
|
|
49
|
+
"@types/node": "20.16.1",
|
|
50
50
|
"@vercel/ncc": "0.38.1",
|
|
51
|
-
"husky": "9.1.
|
|
51
|
+
"husky": "9.1.5",
|
|
52
52
|
"markdown-link-check": "3.12.2",
|
|
53
53
|
"prettier": "3.3.3"
|
|
54
54
|
},
|