Skip to content

Commit

Permalink
ci: ensure normal local net use works properly
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed May 22, 2024
1 parent 537f224 commit c250807
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,39 @@ jobs:
# we do many more runs on the nightly run
PROPTEST_CASES: 50

local-net:
if: "!startsWith(github.event.head_commit.message, 'chore(release):')"
name: Local Network runs?
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2

- name: install ripgrep
shell: bash
run: sudo apt-get install -y ripgrep

- name: Run local network
run: cargo run --bin safenode-manager -- local run --build --clean > output.log
timeout-minutes: 30

- name: Check if Genesis was claimed
run: rg "Genesis claimed" output.log

- name: Check faucet balance
run: rg "90000" output.log

- name: Stop the local network and upload logs
if: always()
uses: maidsafe/sn-local-testnet-action@main
with:
action: stop
log_file_prefix: safe_test_logs_e2e
platform: ${{ matrix.os }}

e2e:
if: "!startsWith(github.event.head_commit.message, 'chore(release):')"
name: E2E tests
Expand Down

0 comments on commit c250807

Please sign in to comment.