find-cypress-specs 1.43.0 → 1.43.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.
Files changed (2) hide show
  1. package/bin/find.js +17 -6
  2. package/package.json +1 -1
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.1",
4
4
  "description": "Find Cypress spec files using the config settings",
5
5
  "main": "src",
6
6
  "files": [