From 66ebcd5a3b46fa47a9438e6f36be8f0f4101e28a Mon Sep 17 00:00:00 2001 From: byteZorvin Date: Sat, 28 Sep 2024 17:49:44 +0530 Subject: [PATCH] lint fixed --- .github/workflows/starknet-test.yml | 86 +++++++++---------- crates/settlement-clients/starknet/Cargo.toml | 10 +-- 2 files changed, 47 insertions(+), 49 deletions(-) diff --git a/.github/workflows/starknet-test.yml b/.github/workflows/starknet-test.yml index e13b5dd9..48e8795c 100644 --- a/.github/workflows/starknet-test.yml +++ b/.github/workflows/starknet-test.yml @@ -2,7 +2,7 @@ name: Starknet test on: pull_request: - branches: + branches: - main - dependency-bump workflow_call: @@ -14,47 +14,45 @@ env: jobs: build-and-test: runs-on: ubuntu-latest - - steps: - - name: Checkout first repository - uses: actions/checkout@v4 - with: - repository: madara-alliance/madara # Replace with your first repository - ref: main # Replace with your branch name - path: madara - - - name: Setup Rust - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - - uses: software-mansion/setup-scarb@v1 - with: - scarb-version: "2.8.2" - - - name: Build Madara - run: | - cd madara - cargo build - - - name: Checkout second repository - uses: actions/checkout@v4 - with: - repository: madara-alliance/madara-orchestrator # Replace with your second repository - path: madara-orchestrator - - - - name: Build Mock Contracts using Scarb - run: | - cd madara-orchestrator/crates/settlement-clients/starknet/src/tests/mock_contracts - scarb fmt --check - scarb build - cd - - - - name: Run Starknet tests - run: | - cd madara-orchestrator - cargo test -p starknet-settlement-client -- --nocapture --test-threads=1 + steps: + - name: Checkout first repository + uses: actions/checkout@v4 + with: + repository: madara-alliance/madara # Replace with your first repository + ref: main # Replace with your branch name + path: madara + + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - uses: software-mansion/setup-scarb@v1 + with: + scarb-version: "2.8.2" + + - name: Build Madara + run: | + cd madara + cargo build + + - name: Checkout second repository + uses: actions/checkout@v4 + with: + repository: madara-alliance/madara-orchestrator # Replace with your second repository + path: madara-orchestrator + + - name: Build Mock Contracts using Scarb + run: | + cd madara-orchestrator/crates/settlement-clients/starknet/src/tests/mock_contracts + scarb fmt --check + scarb build + cd - + + - name: Run Starknet tests + run: | + cd madara-orchestrator + cargo test -p starknet-settlement-client -- --nocapture --test-threads=1 diff --git a/crates/settlement-clients/starknet/Cargo.toml b/crates/settlement-clients/starknet/Cargo.toml index d0a40cb0..ecdae5a1 100644 --- a/crates/settlement-clients/starknet/Cargo.toml +++ b/crates/settlement-clients/starknet/Cargo.toml @@ -4,9 +4,13 @@ version.workspace = true edition.workspace = true [dependencies] +anyhow = "1.0.89" +appchain-core-contract-client = { workspace = true } async-trait = { workspace = true } c-kzg = { workspace = true } color-eyre = { workspace = true } +dotenvy.workspace = true +env_logger = "0.11.5" lazy_static = { workspace = true } mockall = { workspace = true } reqwest = { workspace = true } @@ -14,14 +18,10 @@ rstest = { workspace = true } serde = { workspace = true } settlement-client-interface = { workspace = true } starknet = { workspace = true } +tempfile.workspace = true tokio = { workspace = true } url = { workspace = true } utils = { workspace = true } -appchain-core-contract-client = { workspace = true } -tempfile.workspace = true -anyhow = "1.0.89" -env_logger = "0.11.5" -dotenvy.workspace = true [dev-dependencies] async-std = { version = "1.13.0", features = ["attributes"] }