Skip to content

Commit c3bc137

Browse files
committed
test: Check feature powerset on CI
1 parent 2605d43 commit c3bc137

File tree

6 files changed

+23
-1
lines changed

6 files changed

+23
-1
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,17 @@ jobs:
170170
fail_ci_if_error: true
171171
env:
172172
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
173+
174+
cheack-features:
175+
name: Check all variations of feature sets
176+
runs-on: ubuntu-latest
177+
steps:
178+
- name: Checkout repository
179+
uses: actions/checkout@v4
180+
with:
181+
fetch-depth: 0
182+
- name: Install Rust toolchain
183+
uses: dtolnay/rust-toolchain@stable
184+
components: hack
185+
- name: Test with cargo-hack
186+
run: cargo hack test --feature-powerset

sylvia/tests/multitest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg(feature = "mt")]
1+
#![cfg(all(feature = "mt", feature = "cosmwasm_1_2"))]
22

33
use cw_multi_test::IntoBech32;
44
use std::marker::PhantomData;

sylvia/tests/remote.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "mt")]
2+
13
use cosmwasm_schema::cw_serde;
24
use serde::de::DeserializeOwned;
35
use serde::{Deserialize, Serialize};

sylvia/tests/reply_data.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "mt")]
2+
13
use cosmwasm_schema::cw_serde;
24
use cosmwasm_std::to_json_binary;
35
use cw_storage_plus::Item;

sylvia/tests/reply_dispatch.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "mt")]
2+
13
use cosmwasm_schema::cw_serde;
24
use cosmwasm_std::{BankMsg, CosmosMsg, Empty, SubMsgResult};
35
use cw_storage_plus::Item;

sylvia/tests/reply_generation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "mt")]
2+
13
use cosmwasm_std::{Binary, SubMsgResult};
24
use itertools::Itertools;
35
use sylvia::ctx::InstantiateCtx;

0 commit comments

Comments
 (0)