Skip to content

Commit ff1ba89

Browse files
committed
Add cosmwasm-check fallback for latest version to CI
1 parent ee18ff5 commit ff1ba89

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.circleci/config.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ commands:
3535
- run:
3636
name: Run cosmwasm-check (<< parameters.min_version >>)
3737
command: |
38-
cargo install cosmwasm-check@~<< parameters.min_version >> --locked --force
38+
# Try installing min_version, but fall back to latest main version.
39+
# This allows us to test contracts against the latest cosmwasm-check before releasing it.
40+
cargo install cosmwasm-check@~<< parameters.min_version >> --locked --force \
41+
|| cargo install --path ../../packages/check --locked --force
3942
cosmwasm-check --version
4043
cosmwasm-check target/wasm32-unknown-unknown/release/*.wasm
4144
# Run clippy after wasm build to ensure target/wasm32-unknown-unknown/release/<contract>.wasm exists
@@ -666,10 +669,8 @@ jobs:
666669
- restore_cache:
667670
keys:
668671
- cargocache-v2-contract_hackatom-rust:1.82-{{ checksum "Cargo.lock" }}
669-
# TODO: enable again once 2.2 is released
670672
- check_contract:
671-
min_version: "1.4"
672-
skip_cosmwasm_check: true
673+
min_version: "2.2"
673674
- save_cache:
674675
paths:
675676
- /usr/local/cargo/registry
@@ -724,10 +725,8 @@ jobs:
724725
- restore_cache:
725726
keys:
726727
- cargocache-v2-contract_ibc_reflect-rust:1.74-{{ checksum "Cargo.lock" }}
727-
# TODO: enable again once 2.2 is released
728728
- check_contract:
729729
min_version: "2.2"
730-
skip_cosmwasm_check: true
731730
- save_cache:
732731
paths:
733732
- /usr/local/cargo/registry
@@ -866,10 +865,8 @@ jobs:
866865
- restore_cache:
867866
keys:
868867
- cargocache-v2-contract_reflect-rust:1.74-{{ checksum "Cargo.lock" }}
869-
# TODO: enable again once 2.2 is released
870868
- check_contract:
871869
min_version: "2.2"
872-
skip_cosmwasm_check: true
873870
- save_cache:
874871
paths:
875872
- /usr/local/cargo/registry

0 commit comments

Comments
 (0)