Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvsadana committed Aug 24, 2024
1 parent fbcaa1f commit 99b389a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,16 @@ jobs:
run: |
wget -P ./crates/prover-services/sharp-service/tests/artifacts https://madara-orchestrator-sharp-pie.s3.amazonaws.com/238996-SN.zip
- name: Print env variable
env:
ETHEREUM_BLAST_RPC_URL: ${{ secrets.ETHEREUM_BLAST_RPC_URL }}
run: |
echo ${{ env.ETHEREUM_BLAST_RPC_URL }}
- name: Run llvm-cov tests
env:
ETHEREUM_BLAST_RPC_URL: ${{ secrets.ETHEREUM_BLAST_RPC_URL }}
run: RUST_LOG=debug RUST_BACKTRACE=1 cargo llvm-cov nextest --release --lcov --output-path lcov.info --test-threads=1
run: RUST_LOG=debug RUST_BACKTRACE=1 cargo llvm-cov nextest --release --lcov --output-path lcov.info --test-threads=1 -- --nocapture

- name: Coveralls
uses: coverallsapp/github-action@v2
Expand Down
16 changes: 2 additions & 14 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,12 @@ name: Workflow - Pull Request
on:
workflow_dispatch:
pull_request:
branches: [main]
branches: [ main ]
push:
branches: [main]
branches: [ main ]

jobs:
linters:
name: Run linters
uses: ./.github/workflows/linters.yml

rust_build:
name: Build Rust project
uses: ./.github/workflows/rust-build.yml

linters_cargo:
name: Run Cargo linters
uses: ./.github/workflows/linters-cargo.yml

coverage:
name: Run coverage
uses: ./.github/workflows/coverage.yml
needs: rust_build
1 change: 1 addition & 0 deletions crates/settlement-clients/ethereum/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ impl EthereumTestBuilder {
dotenvy::from_filename(&*ENV_FILE_PATH).expect("Could not load .env.test file.");

// Setup Anvil
println!("this is the eth rpc {:?}", *ETH_RPC);
let anvil = match self.fork_block {
Some(fork_block) => {
Anvil::new().fork(&*ETH_RPC).fork_block_number(fork_block).try_spawn().expect("Could not spawn Anvil.")
Expand Down

0 comments on commit 99b389a

Please sign in to comment.