Skip to content

Commit

Permalink
lint fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
byteZorvin committed Sep 28, 2024
1 parent 56c4144 commit 66ebcd5
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 49 deletions.
86 changes: 42 additions & 44 deletions .github/workflows/starknet-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Starknet test

on:
pull_request:
branches:
branches:
- main
- dependency-bump
workflow_call:
Expand All @@ -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
10 changes: 5 additions & 5 deletions crates/settlement-clients/starknet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ 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 }
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"] }
Expand Down

0 comments on commit 66ebcd5

Please sign in to comment.