CI: Run the schemars job directly using cargo

The `Schemars` job calls the `run_task.sh` script only to do a single
invocation of `cargo test` - just call cargo directly.
This commit is contained in:
Tobin C. Harding 2024-05-02 12:54:53 +10:00
parent 1fb12e1917
commit cc14edf63f
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
2 changed files with 2 additions and 14 deletions

View File

@ -260,8 +260,8 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: "Select toolchain" - name: "Select toolchain"
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
- name: "Run test script" - name: "Run schemars test"
run: ./contrib/run_task.sh schemars run: cd hashes/extended_tests/schemars && cargo test
Kani: Kani:
name: Kani codegen - stable toolchain name: Kani codegen - stable toolchain

View File

@ -100,11 +100,6 @@ main() {
do_asan do_asan
;; ;;
schemars)
# hashes crate only.
do_schemars
;;
*) *)
err "Error: unknown task $task" err "Error: unknown task $task"
;; ;;
@ -264,13 +259,6 @@ do_bench() {
done done
} }
# This is only relevant for hashes.
do_schemars() {
pushd "$REPO_DIR/hashes/extended_tests/schemars" > /dev/null
cargo test
popd > /dev/null
}
# Note we do not use the recent lock file or `--locked` when running the wasm tests. # Note we do not use the recent lock file or `--locked` when running the wasm tests.
do_wasm() { do_wasm() {
pushd "$REPO_DIR/hashes" > /dev/null pushd "$REPO_DIR/hashes" > /dev/null