From 2f494c9b8cb64ea6c7d6ac9432d471c95f0e0a25 Mon Sep 17 00:00:00 2001 From: jbernal87 Date: Fri, 23 Feb 2024 18:22:40 +0100 Subject: [PATCH] Addid github actions "Integration tests" --- .github/workflows/Basic.yml | 10 ++--- .github/workflows/integration_tests.yaml | 39 ++++++++++++++++++++ packages/injective-protobuf/src/proto/mod.rs | 4 +- 3 files changed, 46 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/integration_tests.yaml diff --git a/.github/workflows/Basic.yml b/.github/workflows/Basic.yml index c573b186..97bbec7e 100644 --- a/.github/workflows/Basic.yml +++ b/.github/workflows/Basic.yml @@ -24,7 +24,7 @@ jobs: uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: 1.72.0 + toolchain: 1.73.0 target: wasm32-unknown-unknown override: true @@ -41,7 +41,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: unit-test - toolchain: 1.72.0 + toolchain: 1.73.0 args: --locked env: RUST_BACKTRACE: 1 @@ -65,7 +65,7 @@ jobs: uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: 1.72.0 + toolchain: 1.73.0 override: true components: rustfmt, clippy @@ -73,12 +73,12 @@ jobs: uses: actions-rs/cargo@v1 with: command: fmt - toolchain: 1.72.0 + toolchain: 1.73.0 args: --all -- --check - name: Run cargo clippy uses: actions-rs/cargo@v1 with: command: clippy - toolchain: 1.72.0 + toolchain: 1.73.0 args: -- -D warnings diff --git a/.github/workflows/integration_tests.yaml b/.github/workflows/integration_tests.yaml new file mode 100644 index 00000000..ddbf312a --- /dev/null +++ b/.github/workflows/integration_tests.yaml @@ -0,0 +1,39 @@ +# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml + +on: + push: + pull_request: + types: [opened] + +name: integration tests + +jobs: + test: + name: Test Suite + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install Rust Toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.73.0 + target: wasm32-unknown-unknown + override: true + components: llvm-tools-preview + + - name: Compile WASM contracts + uses: actions-rs/cargo@v1 + with: + command: build + args: --release --target wasm32-unknown-unknown --locked --package grid + env: + RUSTFLAGS: "-C link-arg=-s" + + - name: Run Integration Tests + uses: actions-rs/cargo@v1 + with: + command: test + args: --features integration diff --git a/packages/injective-protobuf/src/proto/mod.rs b/packages/injective-protobuf/src/proto/mod.rs index de0fb666..de6005c4 100644 --- a/packages/injective-protobuf/src/proto/mod.rs +++ b/packages/injective-protobuf/src/proto/mod.rs @@ -1,9 +1,9 @@ // @generated -pub mod account; pub mod auth; pub mod coin; pub mod distribution; pub mod exchange; -pub mod oracle; pub mod tx; +pub mod oracle; +pub mod account;