From 9c839c8001780ab008a5817ac6daa508572e4a0c Mon Sep 17 00:00:00 2001 From: Lars Lubkoll <11710767+lubkoll@users.noreply.github.com> Date: Thu, 18 Jul 2024 17:41:45 +0200 Subject: [PATCH] Run proptests only on main --- .github/workflows/cl_vault.yml | 6 ++++-- smart-contracts/contracts/cl-vault/.cargo/config | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cl_vault.yml b/.github/workflows/cl_vault.yml index a980f156b..7ab51f631 100644 --- a/.github/workflows/cl_vault.yml +++ b/.github/workflows/cl_vault.yml @@ -9,7 +9,8 @@ on: - 'smart-contracts/contracts/cl-vault/**.rs' - 'smart-contracts/contracts/dex-router-osmosis/Cargo.toml' - 'smart-contracts/contracts/dex-router-osmosis/**.rs' - - '.github/workflows/**.yml' + - '.github/workflows/cl_vault.yml' + - '.github/workflows/rust_basic.yml' push: branches: - main @@ -18,7 +19,8 @@ on: - 'smart-contracts/contracts/cl-vault/**.rs' - 'smart-contracts/contracts/dex-router-osmosis/Cargo.toml' - 'smart-contracts/contracts/dex-router-osmosis/**.rs' - - '.github/workflows/**.yml' + - '.github/workflows/cl_vault.yml' + - '.github/workflows/rust_basic.yml' workflow_dispatch: jobs: diff --git a/smart-contracts/contracts/cl-vault/.cargo/config b/smart-contracts/contracts/cl-vault/.cargo/config index 2b13b22f1..4fe35c8c4 100644 --- a/smart-contracts/contracts/cl-vault/.cargo/config +++ b/smart-contracts/contracts/cl-vault/.cargo/config @@ -2,5 +2,6 @@ wasm = "build --release --lib --target wasm32-unknown-unknown" unit-test = "test --lib" schema = "run --bin schema" -test-tube = "test --package cl-vault --lib -- --include-ignored test_tube:: --nocapture --test-threads=1" +test-tube = "test --package cl-vault --lib -- --include-ignored test_tube:: --nocapture --test-threads=1 --skip test_complete_works" +prop-test = "test test_tube::proptest::tests::test_complete_works --lib -- --include-ignored test_tube:: --nocapture --test-threads=1 --exact" test-tube-build = "build --release --lib --target wasm32-unknown-unknown --target-dir ./test-tube-build"