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 676cd6a
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,65 @@ jobs:
# we do many more runs on the nightly run
PROPTEST_CASES: 50

node-manager-unit-tests:
name: node manager unit tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4

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

- name: cargo cache registry, index and build
uses: actions/[email protected]
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-cache-${{ hashFiles('**/Cargo.lock') }}
- shell: bash
run: cargo test --lib --package sn-node-manager



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 676cd6a

Please sign in to comment.