Skip to content

Run Sprocket WDL document validation as part of a CI/CD pipeline with GitHub Actions.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

stjude-rust-labs/sprocket-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Repository Header Image


Sprocket GitHub Action

This action uses Sprocket to validate and optionally lint WDL documents.

Inputs

lint

Optional Whether to run linting in addition to validation. Boolean, valid choices: ["true", "false"]

exclude-patterns

Optional Comma separated list of patterns to exclude when searching for WDL files.

deny-warnings

Optional If specified, Sprocket check will fail if any warnings are produced.

deny-notes

Optional If specified, Sprocket check will fail if any notes are produced.

except

Optional If specified and lint==true, then the listed rules will be excepted from all sprocket lint checks. Multiple rules can be specified as a comma-separated list, e.g. CallInputSpacing,CommandSectionMixedIndentation. Valid options can be found at: https://docs.rs/wdl/latest/wdl/lint/index.html#lint-rules.

Example usage

uses: stjude-rust-labs/sprocket-action@main
with:
    lint: true
    exclude-patterns: template,test

License and Legal

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.