This action provides select functionality of the Sprocket command line tool for use in CI/CD pipelines.
The default action is to sprocket check all WDL documents found in the workspace.
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 Whether to enable all lint rules (adds additional rules beyond the default lint rule set). Boolean, valid choices: ["true", "false"].
Optional If specified, Sprocket check will fail if any warnings are produced. Boolean, valid choices: ["true", "false"].
Optional If specified, Sprocket check will fail if any notes are produced. Boolean, valid choices: ["true", "false"].
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.
Optional Comma separated list of patterns to append to the .sprocketignore file in the root of the repository.
uses: stjude-rust-labs/sprocket-action@main
with:
action: check
lint: true
ignore-patterns: template,test
except: TrailingComma,ContainerUriThe 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
ignore-patterns: template,test
except: TrailingComma,ContainerUriValidates 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
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
wdl_files: "tools/bwa.wdl,tools/star.wdl"
inputs_files: "inputs/bwa.json,inputs/star.wdl"The Sprocket GitHub action will load a sprocket.toml in the root of your repository, and that can be used to have the same settings in your local development environment as your CI environment. All optional inputs to this GitHub Action (aside from action and skip-config-search) can be supplied in your TOML instead.
See the configuration overview on sprocket.bio for more information.
You can set skip-config-search: true to enable the --skip-config-search Sprocket option, which disables the normal configuration search. This can be used with config-path to load only the specified configuration file.
The config-path can be used if your config TOML is not in the root of the repository or you want to add CI specific configuration. The TOML found at this location will be the highest priority configuration. See our documentation about configuration load order for more information.
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.
