Skip to content

Add Action and template inputs for strict, transport, and report - #16

Merged
ShmueLior merged 2 commits into
mainfrom
feat/action-inputs
Nov 28, 2026
Merged

ShmueLior merged 2 commits into
mainfrom
feat/action-inputs

Conversation

@ShmueLior

Copy link
Copy Markdown
Owner

Adds strict, transport and report inputs to the GitHub Action and the Azure Pipelines template.

  • strict: passes --strict to lint
  • transport: passes --transport (only with http-url)
  • report: a directory; writes lint.html / diff.html with --report, sets lint-report / diff-report outputs, and uploads them as an artifact on GitHub

Defaults keep the exact same command lines as before. report checks the CLI help first and fails fast with a clear message if the installed version has no --report. Report outputs stay empty when a check exits 2, so stale HTML is never published.

CI gets an extra dogfood step on Ubuntu and Windows that uses all three inputs and checks the HTML.

Optional wrapper inputs with defaults that keep the current CLI
invocation unchanged. report is a directory (lint.html/diff.html).
The installed CLI is probed for a requested flag before lint or diff
run, so a 0.3.0-preview pin fails fast instead of with an unrecognized
option. Artifact upload stays in the calling workflow.
The wrapper only writes HTML on exit 0 or 1. If a leftover lint.html
or diff.html is already in the report directory, do not treat that
file as a report from this run.
@ShmueLior
ShmueLior merged commit 5dabb96 into main Nov 28, 2026
3 checks passed
@ShmueLior ShmueLior mentioned this pull request Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant