From 80f64d44f47ca0030cc9cbd8f5cb86eafb0da211 Mon Sep 17 00:00:00 2001 From: jose Date: Wed, 28 Aug 2024 11:02:45 +0200 Subject: [PATCH] feature: use injective-core@v1.13.2 * improve version core aling feature: add github ci --- .github/workflows/unit_test.yml | 55 +++++++++++++++++++++++++ packages/injective-test-tube/Cargo.toml | 2 +- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/unit_test.yml diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml new file mode 100644 index 0000000..dadcad6 --- /dev/null +++ b/.github/workflows/unit_test.yml @@ -0,0 +1,55 @@ +on: + push: + pull_request: + types: [opened] + +name: Unit tests + lints + +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.78.0 + target: wasm32-unknown-unknown + override: true + components: llvm-tools-preview + + - name: Run Tests + uses: actions-rs/cargo@v1 + with: + command: test + + lints: + name: Lints + 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.78.0 + override: true + components: rustfmt, clippy + + - name: Run cargo fmt + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + + - name: Run cargo clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + args: --tests -- -D warnings diff --git a/packages/injective-test-tube/Cargo.toml b/packages/injective-test-tube/Cargo.toml index 1111906..d142b88 100644 --- a/packages/injective-test-tube/Cargo.toml +++ b/packages/injective-test-tube/Cargo.toml @@ -4,7 +4,7 @@ edition = "2021" license = "MIT OR Apache-2.0" name = "injective-test-tube" repository = "https://github.com/InjectiveLabs/test-tube" -version = "1.13.0-4" +version = "1.13.2" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html exclude = [ "injective-core", "test_artifacts" ]