-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: ensure normal local net use works properly
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|