This action provides select functionality of the Sprocket command line tool for use in CI/CD pipelines.
The check
and lint
subcommands perform static analysis on WDL documents. The lint: true
option additionally enables linting rules. The lint
subcommand is an alias for check
with linting enabled.
Optional Whether to run linting in addition to validation. Boolean, valid choices: ["true", "false"].
Optional Comma separated list of patterns to exclude when searching for WDL files.
Optional If specified, Sprocket check
will fail if any warnings
are produced.
Optional If specified, Sprocket check
will fail if any notes
are produced.
Optional If specified, then the listed rules will be excepted from all sprocket check
reports. Multiple rules can be specified as a comma-separated list, e.g. CallInputSpacing,CommandSectionMixedIndentation
. Valid options can be found at: analysis rules and lint rules.
uses: stjude-rust-labs/sprocket-action@main
with:
action: check
lint: true
exclude-patterns: template,test
except: TrailingComma,ContainerValue
The action lint
can be specified and is equivalent to specifying action: check
and lint: true
.
uses: stjude-rust-labs/sprocket-action@main
with:
action: lint
exclude-patterns: template,test
except: TrailingComma,ContainerValue
Validates an input JSON against a task or workflow input schema.
A comma-separated list of WDL documents containing a task or workflow for which to check inputs.
A matching comma-separated list of JSON format inputs file for the task(s)/workflow(s). Ordering must match wdl_files
as no checking will be performed.
uses: stjude-rust-labs/sprocket-action@main
with:
action: validate-inputs
wdl_files: "tools/bwa.wdl"
inputs_files: "inputs/bwa.json"
Multiple files can be specified as well.
uses: stjude-rust-labs/sprocket-action@main
with:
action: validate-inputs
wdl_files: "tools/bwa.wdl,tools/star.wdl"
inputs_files: "inputs/bwa.json,inputs/star.wdl"
This project is licensed as either Apache 2.0 or MIT at your discretion. Additionally, please see the disclaimer that applies to all crates and command line tools made available by St. Jude Rust Labs.
Copyright © 2024-Present St. Jude Children's Research Hospital.