File tree Expand file tree Collapse file tree 4 files changed +43
-24
lines changed
Expand file tree Collapse file tree 4 files changed +43
-24
lines changed Original file line number Diff line number Diff line change 1+ name : Preflight
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+
8+ jobs :
9+ preflight :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - name : Run preflight script
14+ run : ./scripts/preflight.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+
4+ # Move to repository root
5+ cd " $( dirname " $0 " ) /.."
6+
7+ # Run only the tests for quick iteration
8+ cargo test --all-features
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+
4+ # Move to repository root
5+ cd " $( dirname " $0 " ) /.."
6+
7+ # Ensure required tools are available
8+ if ! command -v rustfmt > /dev/null 2>&1 ; then
9+ echo " rustfmt not found. Installing via rustup..."
10+ rustup component add rustfmt
11+ fi
12+
13+ if ! cargo kani --version > /dev/null 2>&1 ; then
14+ echo " cargo-kani not found. Installing Kani verifier..."
15+ cargo install --locked kani-verifier
16+ fi
17+
18+ # Run formatting check, tests, and Kani verification
19+ cargo fmt -- --check
20+ cargo test --all-features
21+ cargo kani --workspace --all-features
You can’t perform that action at this time.
0 commit comments