Skip to content

docs: describe swift-test-xunit-paths as taking globs - #147

Merged
dfrankland merged 1 commit into
mainfrom
swift-test-xunit-globs
Sep 16, 2026
Merged

dfrankland merged 1 commit into
mainfrom
swift-test-xunit-globs

Conversation

@dfrankland

Copy link
Copy Markdown
Member

Both the README row and the action.yaml description said the input "Takes files, not glob paths". That was accurate: the CLI argument this forwards to opened each comma-split value directly, so a pattern failed with failed to open ./junit*.xml.

trunk-io/analytics-cli#1201 gives --swift-test-xunit-paths the same expansion --junit-paths has always had, including the canonical-path dedupe, so the sentence stops being true once that ships. Reworded to match the junit-paths row above it, since the two now behave the same way.

Merge after the CLI change is in a release. cli-version defaults to latest, so until 0.15.5 ships this would document a capability users don't have — a glob would still reach File::open verbatim and fail.

Testing

No source change — only the input description in action.yaml and its README row, neither of which is asserted anywhere in __tests__. I ran pnpm build anyway and dist/index.js came out byte-identical, which is the pre-commit hook's whole job; it can't run in this environment (no pnpm inside trunk's sandbox), so the commit is --no-verify with that check done by hand instead. The README diff is larger than the one line it changes because prettier re-pads the whole table.

🤖 Generated with Claude Code

The input said "Takes files, not glob paths", which was true of the CLI
argument it forwards to until trunk-io/analytics-cli#1201 gave that argument
the same expansion `--junit-paths` has always had.

Worded to match the `junit-paths` row above it, since the two now behave the
same way.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@trunk-staging-io

Copy link
Copy Markdown

Static Badge   Static Badge   Static Badge

View Full Report ↗︎ ⋅ Docs

@trunk-io

trunk-io Bot commented Sep 15, 2026

Copy link
Copy Markdown

Static Badge   Static Badge   Static Badge

View Full Report ↗︎ ⋅ Docs

@dfrankland
dfrankland merged commit 26e4c6f into main Sep 16, 2026
8 checks passed
@dfrankland
dfrankland deleted the swift-test-xunit-globs branch September 16, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants