-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use public Sprocket action (#180)
* ci: use public Sprocket action * ci: add sprocket check step
- Loading branch information
1 parent
1290602
commit 85b2a1c
Showing
2 changed files
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Workflows Sprocket Check | ||
|
||
on: [push] | ||
|
||
jobs: | ||
sprocket_check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run sprocket | ||
uses: stjude-rust-labs/[email protected] | ||
with: | ||
exclude-patterns: template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,21 +7,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
- name: Install sprocket | ||
run: | | ||
cargo install sprocket | ||
- name: Run sprocket | ||
run: | | ||
EXITCODE=0 | ||
echo "Checking WDL files using \`sprocket lint\`." | ||
shopt -s extglob | ||
files=$(find ./!(template) -name '*.wdl') | ||
for file in $files; do | ||
echo " [***] $file [***]" | ||
sprocket lint "$file" || EXITCODE=$(($? || EXITCODE)) | ||
done | ||
exit $EXITCODE | ||
uses: stjude-rust-labs/[email protected] | ||
with: | ||
lint: true | ||
exclude-patterns: template | ||
deny-warnings: true | ||
deny-notes: true |