Skip to content

Commit

Permalink
Adds gh action to check examples to ensure they're valid
Browse files Browse the repository at this point in the history
  • Loading branch information
scottopell committed May 13, 2024
1 parent 6879780 commit cbd15df
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,23 @@ jobs:
- run: cargo test -p sheepdog
timeout-minutes: 30

config-smoke-tests:
name: Example Config smoke test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1.8
- run: cargo build --bin smp --release
- run: |
for config in ./examples/*.yaml; do
echo "Testing with config $config"
timeout 1 ./target/release/lading --no-target --config-path "$config"
exit_code=$?
if [ $exit_code -ne 124 ]; then
echo "Test failed or did not timeout for $config"
exit 1
fi
done
kani:
name: Kani Proofs
Expand Down

0 comments on commit cbd15df

Please sign in to comment.