Skip to content

Commit

Permalink
ci: run sn_client with network
Browse files Browse the repository at this point in the history
Adds these tests to PR runs, sets the proper location for them for nightly
  • Loading branch information
joshuef committed Mar 13, 2024
1 parent 8fa8f22 commit fab06d6
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 127 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ jobs:
timeout-minutes: 25
run: cargo test --release --package sn_cli -- --skip test_acc_packet_

# We do not run client `--tests` here as they can require a network
- name: Run client tests
timeout-minutes: 25
run: |
Expand Down Expand Up @@ -366,6 +367,13 @@ jobs:
echo "SAFE_PEERS has been set to $SAFE_PEERS"
fi
# only these unit tests require a network, the rest are run above
- name: Run sn_client --tests
run: cargo test --package sn_client --release --tests
env:
SN_LOG: "all"
timeout-minutes: 15

- name: Create and fund a wallet to pay for files storage
run: |
cargo run --bin faucet --release -- --log-output-dest=data-dir send 1000000 $(cargo run --bin safe --release -- --log-output-dest=data-dir wallet address | tail -n 1) | tail -n 1 > transfer_hex
Expand Down
Loading

0 comments on commit fab06d6

Please sign in to comment.