Skip to content

Commit

Permalink
ci: use public Sprocket action (#180)
Browse files Browse the repository at this point in the history
* ci: use public Sprocket action
* ci: add sprocket check step
  • Loading branch information
adthrasher authored Sep 19, 2024
1 parent 1290602 commit 85b2a1c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/sprocket-check.yaml
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
23 changes: 6 additions & 17 deletions .github/workflows/sprocket-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 85b2a1c

Please sign in to comment.