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.
- package/bin/find.js +17 -6
- 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
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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
|
-
)}
|
|
231
|
-
|
|
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 {
|