Skip to content
check-circle

GitHub Action

Sprocket Check

v0.5.1 Latest version

Sprocket Check

check-circle

Sprocket Check

Check WDL documents for validity using Sprocket

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Sprocket Check

uses: stjude-rust-labs/[email protected]

Learn more about this action in stjude-rust-labs/sprocket-action

Choose a version

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.