Skip to content

Commit

Permalink
Merge pull request #211 from InjectiveLabs/enhance-ci
Browse files Browse the repository at this point in the history
Add compile contracts to CI
  • Loading branch information
gorgos authored Feb 2, 2024
2 parents aa4f051 + 9536c0e commit ac48b89
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/Basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ jobs:
target: wasm32-unknown-unknown
override: true

- name: Compile contracts
run: |
for dir in contracts/*/
do
cd "$dir"
RUSTFLAGS='-C link-arg=-s' cargo wasm
cd -
done
- name: Run unit tests
uses: actions-rs/cargo@v1
with:
Expand Down
20 changes: 11 additions & 9 deletions contracts/injective-cosmwasm-mock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ optimize = """docker run --rm -v "$(pwd)":/code \
"""

[dependencies]
cosmwasm-std = { version = "1.5.0", features = [ "abort", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "iterator", "stargate" ] }
cw-storage-plus = "1.2.0"
cw2 = "0.16.0"
injective-cosmwasm = { path = "../../packages/injective-cosmwasm" }
injective-math = { path = "../../packages/injective-math" }
injective-std = { version = "0.1.5" }
cosmwasm-std = { version = "1.5.0", features = [ "abort", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "iterator", "stargate" ] }
cw-storage-plus = "1.2.0"
cw2 = "0.16.0"
injective-cosmwasm = { path = "../../packages/injective-cosmwasm" }
injective-math = { path = "../../packages/injective-math" }
injective-std = { version = "0.1.5" }
schemars = "0.8.8"
serde = { version = "1.0.137", default-features = false, features = [ "derive" ] }
thiserror = { version = "1.0.31" }

[dev-dependencies]
injective-test-tube = "1.1.6"
schemars = "0.8.8"
serde = { version = "1.0.137", default-features = false, features = [ "derive" ] }
thiserror = { version = "1.0.31" }
2 changes: 2 additions & 0 deletions contracts/injective-cosmwasm-mock/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ mod error;
pub mod msg;
#[cfg(test)]
mod testing;

#[cfg(test)]
pub mod utils;

pub use crate::error::ContractError;

0 comments on commit ac48b89

Please sign in to comment.