Skip to content

Commit

Permalink
Run proptests only on main
Browse files Browse the repository at this point in the history
  • Loading branch information
lubkoll committed Jul 19, 2024
1 parent c987a13 commit 2e8d9ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/cl_vault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -50,6 +52,10 @@ jobs:
working-directory: smart-contracts/contracts/cl-vault
- name: Run test-tube tests
run: cargo test-tube
working-directory: smart-contracts/contracts/cl-vault
- name: Run fuzzer
if: github.ref == 'refs/heads/main'
run: cargo prop-test
env:
PROPTEST_CASES: 10
PROPTEST_CASES: 20
working-directory: smart-contracts/contracts/cl-vault
3 changes: 2 additions & 1 deletion smart-contracts/contracts/cl-vault/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 2e8d9ac

Please sign in to comment.