Scripting tweaks (#138)

- No need to build with coverage by default on linux platforms
- Will add coverage formally in CI later
- Rename rust.yml to pr.yml

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2024-02-08 16:24:40 -08:00
committed by GitHub
parent bb1b25ff2f
commit 5044d54d18
6 changed files with 3 additions and 105 deletions

View File

@@ -10,10 +10,8 @@ if [ -f Cargo.toml ]; then
"$dir/pre-commit"
# Ensure that all tests pass
# Also generate coverage information.
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
scripts/coverage
fi
cargo test -r
cargo test -r --test aci
# Ensure that OPA conformance tests don't regress.
cargo test -r --features opa-testutil --test opa -- $(tr '\n' ' ' < tests/opa.passing)