Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 24 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- feat/*
- feat/*
pull_request:

env:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Test project no default features
run: cargo test --locked --no-default-features
- name: Clippy project
run: cargo clippy --all-targets -- -D warnings
run: cargo clippy --all-targets -- -D warnings
- name: Fmt check project
run: cargo fmt --check

Expand All @@ -75,7 +75,7 @@ jobs:
run: cargo test --locked --no-default-features
- name: Clippy examples
working-directory: examples
run: cargo clippy --all-targets -- -D warnings
run: cargo clippy --all-targets -- -D warnings
- name: Fmt check examples
working-directory: examples
run: cargo fmt --check
Expand Down Expand Up @@ -146,11 +146,11 @@ jobs:
name: Code coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:0.31.1
options: --security-opt seccomp=unconfined
image: xd009642/tarpaulin:0.31.1
options: --security-opt seccomp=unconfined
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
Expand All @@ -161,12 +161,25 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Generate code coverage
- name: Generate code coverage
run: |
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml --engine llvm
- name: Upload to codecov.io
uses: codecov/codecov-action@v5
- name: Upload to codecov.io
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

cheack-features:
name: Check all variations of feature sets
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Test with cargo-hack
run: cargo install cargo-hack && cargo hack test --feature-powerset
2 changes: 1 addition & 1 deletion sylvia/tests/multitest.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg(feature = "mt")]
#![cfg(all(feature = "mt", feature = "cosmwasm_1_2"))]

use cw_multi_test::IntoBech32;
use std::marker::PhantomData;
Expand Down
2 changes: 2 additions & 0 deletions sylvia/tests/remote.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(feature = "mt")]

use cosmwasm_schema::cw_serde;
use serde::de::DeserializeOwned;
use serde::{Deserialize, Serialize};
Expand Down
2 changes: 2 additions & 0 deletions sylvia/tests/reply_data.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(feature = "mt")]

use cosmwasm_schema::cw_serde;
use cosmwasm_std::to_json_binary;
use cw_storage_plus::Item;
Expand Down
2 changes: 2 additions & 0 deletions sylvia/tests/reply_dispatch.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(feature = "mt")]

use cosmwasm_schema::cw_serde;
use cosmwasm_std::{BankMsg, CosmosMsg, Empty, SubMsgResult};
use cw_storage_plus::Item;
Expand Down
2 changes: 2 additions & 0 deletions sylvia/tests/reply_generation.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(feature = "mt")]

use cosmwasm_std::{Binary, SubMsgResult};
use itertools::Itertools;
use sylvia::ctx::InstantiateCtx;
Expand Down
Loading