find-cypress-specs 1.31.3 → 1.31.4

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 CHANGED
@@ -1,4 +1,4 @@
1
- # find-cypress-specs [![renovate-app badge][renovate-badge]][renovate-app] ![cypress version](https://img.shields.io/badge/cypress-12.8.0-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-12.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
 
package/bin/find.js CHANGED
@@ -127,11 +127,6 @@ if (args['--branch']) {
127
127
 
128
128
  let changedSpecs = specs.filter((file) => changedFiles.includes(file))
129
129
  debug('changed %d specs %o', changedSpecs.length, changedSpecs)
130
- if (args['--set-gha-outputs']) {
131
- debug('setting GitHub Actions outputs changedSpecsN and changedSpecs')
132
- core.setOutput('changedSpecsN', changedSpecs.length)
133
- core.setOutput('changedSpecs', changedSpecs.join(','))
134
- }
135
130
 
136
131
  if (args['--tagged']) {
137
132
  const splitTags = args['--tagged']
@@ -146,12 +141,19 @@ if (args['--branch']) {
146
141
  const specHasTags = Object.keys(specTagCounts).some((tag) =>
147
142
  splitTags.includes(tag),
148
143
  )
149
- debug('spec %s has tags? %o', file, specHasTags)
150
-
144
+ debug('spec %s has any of the tags? %o', file, specHasTags)
151
145
  return specHasTags
152
146
  })
153
147
  }
154
148
 
149
+ if (args['--set-gha-outputs']) {
150
+ debug('setting GitHub Actions outputs changedSpecsN and changedSpecs')
151
+ debug('changedSpecsN %d', changedSpecs.length)
152
+ debug('plus changedSpecs')
153
+ core.setOutput('changedSpecsN', changedSpecs.length)
154
+ core.setOutput('changedSpecs', changedSpecs.join(','))
155
+ }
156
+
155
157
  if (args['--count']) {
156
158
  console.log(changedSpecs.length)
157
159
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "find-cypress-specs",
3
- "version": "1.31.3",
3
+ "version": "1.31.4",
4
4
  "description": "Find Cypress spec files using the config settings",
5
5
  "main": "src",
6
6
  "files": [
@@ -47,11 +47,11 @@
47
47
  "homepage": "https://github.com/bahmutov/find-cypress-specs#readme",
48
48
  "devDependencies": {
49
49
  "ava": "^4.0.0",
50
- "cypress": "12.8.1",
50
+ "cypress": "12.9.0",
51
51
  "execa-wrap": "^1.4.0",
52
52
  "prettier": "^2.5.1",
53
53
  "really-need": "^1.9.2",
54
- "semantic-release": "20.1.3",
54
+ "semantic-release": "21.0.0",
55
55
  "sinon": "^13.0.1",
56
56
  "typescript": "^4.6.3"
57
57
  },