find-cypress-specs 1.43.0 → 1.43.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.
Files changed (3) hide show
  1. package/README.md +2 -1
  2. package/bin/find.js +17 -6
  3. package/package.json +7 -4
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # find-cypress-specs [![renovate-app badge][renovate-badge]][renovate-app] ![cypress version](https://img.shields.io/badge/cypress-13.6.4-brightgreen) [![ci](https://github.com/bahmutov/find-cypress-specs/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/bahmutov/find-cypress-specs/actions/workflows/ci.yml)
1
+ # find-cypress-specs [![renovate-app badge][renovate-badge]][renovate-app] ![cypress version](https://img.shields.io/badge/cypress-13.8.1-brightgreen) [![ci](https://github.com/bahmutov/find-cypress-specs/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/bahmutov/find-cypress-specs/actions/workflows/ci.yml)
2
2
 
3
3
  > Find Cypress spec files using the config settings
4
4
 
@@ -376,6 +376,7 @@ $ DEBUG=find-cypress-specs:git npx find-cypress-specs --branch main
376
376
  ## Examples
377
377
 
378
378
  - 📝 blog post [Run Changed Traced Specs On GitHub Actions](https://glebbahmutov.com/blog/trace-changed-specs/)
379
+ - 📝 blog post [Quickly Run The Changed Specs on GitHub Actions](https://glebbahmutov.com/blog/quick-changed-specs/)
379
380
  - [chat.io](https://github.com/bahmutov/chat.io) as described in the blog post [Get Faster Feedback From Your Cypress Tests Running On CircleCI](https://glebbahmutov.com/blog/faster-ci-feedback-on-circleci/)
380
381
 
381
382
  ## NPM module
package/bin/find.js CHANGED
@@ -222,13 +222,24 @@ if (args['--test-counts']) {
222
222
 
223
223
  if (args['--gha-summary']) {
224
224
  debug('writing GitHub Actions summary')
225
- const summary = changedSpecs.length
226
- ? `Found that ${pluralize(
227
- 'spec',
228
- changedSpecs.length,
225
+ let summary
226
+
227
+ if (changedSpecs.length > 0) {
228
+ summary = `Found that ${pluralize(
229
+ 'spec',
230
+ changedSpecs.length,
231
+ true,
232
+ )} changed: ${changedSpecs.join(', ')}`
233
+ if (machinesNeeded > 0) {
234
+ summary += `\nestimated ${pluralize(
235
+ 'machine',
236
+ machinesNeeded,
229
237
  true,
230
- )} changed: ${changedSpecs.join(', ')}`
231
- : 'No specs changed'
238
+ )} needed`
239
+ }
240
+ } else {
241
+ summary = 'No specs changed'
242
+ }
232
243
  if (process.env.GITHUB_STEP_SUMMARY) {
233
244
  core.summary.addRaw(summary).write()
234
245
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "find-cypress-specs",
3
- "version": "1.43.0",
3
+ "version": "1.43.2",
4
4
  "description": "Find Cypress spec files using the config settings",
5
5
  "main": "src",
6
6
  "files": [
@@ -10,6 +10,9 @@
10
10
  "bin": {
11
11
  "find-cypress-specs": "bin/find.js"
12
12
  },
13
+ "engines": {
14
+ "node": ">=18"
15
+ },
13
16
  "scripts": {
14
17
  "test": "ava",
15
18
  "prod-deps": "npm audit --report --omit dev",
@@ -55,12 +58,12 @@
55
58
  "homepage": "https://github.com/bahmutov/find-cypress-specs#readme",
56
59
  "devDependencies": {
57
60
  "ava": "^4.0.0",
58
- "cypress": "13.6.4",
61
+ "cypress": "13.8.1",
59
62
  "dependency-version-badge": "^1.11.0",
60
63
  "execa-wrap": "^1.4.0",
61
64
  "prettier": "^2.5.1",
62
65
  "really-need": "^1.9.2",
63
- "semantic-release": "23.0.2",
66
+ "semantic-release": "23.0.8",
64
67
  "sinon": "^13.0.1",
65
68
  "typescript": "^4.6.3"
66
69
  },
@@ -75,7 +78,7 @@
75
78
  "pluralize": "^8.0.0",
76
79
  "require-and-forget": "^1.0.1",
77
80
  "shelljs": "^0.8.5",
78
- "spec-change": "^1.10.0",
81
+ "spec-change": "^1.11.0",
79
82
  "tsx": "^4.7.1"
80
83
  }
81
84
  }