Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds gh action to check examples to ensure they're valid #894

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,25 @@ 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/[email protected]
- name: Install Protobuf
uses: ./.github/actions/install-protobuf
- run: cargo build --bin lading --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
Loading