Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .claude/settings.local.json

This file was deleted.

14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Starts a local Autonomi testnet with optional EVM support. This action handles a
- Configurable node count and network settings
- Automatic peer discovery and network verification
- Support for custom rewards addresses
- Automatically extracts and sets SECRET_KEY for ant CLI operations

**Usage:**
```yaml
Expand Down Expand Up @@ -105,8 +106,14 @@ jobs:

- name: Run your tests
run: |
# Your test commands here
# The network peer address is available as: ${{ steps.start-network.outputs.peer-address }}
# Your test commands here using ant CLI
# Use --local flag to connect to the local network automatically

# Example: Upload a file
echo "Test data" > test.txt
ant --local file upload test.txt --public

# The network peer address is also available as: ${{ steps.start-network.outputs.peer-address }}
echo "Network is running, peer: ${{ steps.start-network.outputs.peer-address }}"

- name: Cleanup Autonomi Network
Expand All @@ -122,9 +129,12 @@ jobs:
The actions set up several environment variables that your tests can use:

- `ANT_PEERS`: The peer address of the first node in the network
- `SECRET_KEY`: The deployer secret key for ant CLI payment operations (when EVM is enabled)
- `EVM_NETWORK`: Set to `local` when EVM is enabled
- `ANT_LOG`: Set to `v` for verbose logging

**Note:** When using the ant CLI with these actions, you can use the `--local` flag which automatically connects to the local network setup.

## Requirements

- **OS**: Ubuntu (latest versions recommended)
Expand Down
4 changes: 4 additions & 0 deletions cleanup-autonomi-network/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: 'Cleanup Autonomi Network'
description: 'Stops local Autonomi testnet and EVM processes, cleans up resources'
author: 'MaidSafe'

branding:
icon: 'trash-2'
color: 'red'

inputs:
upload-logs:
description: 'Whether to upload logs as artifacts'
Expand Down
13 changes: 7 additions & 6 deletions examples/basic-usage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ jobs:

- name: Run basic network tests
run: |
# Example: Test network connectivity using the peer address
# Example: Test network connectivity and basic operations
echo "Testing network with peer: $ANT_PEERS"
echo "SECRET_KEY available: ${SECRET_KEY:+YES}${SECRET_KEY:-NO}"

# Add your actual test commands here
# For example:
# - Upload/download files to the network
# - Test smart contract deployment if EVM is enabled
# - Verify network nodes are responding
# Test basic ant CLI operations
echo "Test file content" > test-file.txt

# Upload file to network using --local flag
ant --local file upload test-file.txt --public

echo "✅ Basic tests completed"

Expand Down
4 changes: 4 additions & 0 deletions spawn-autonomi-network/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: 'Spawn Autonomi Network'
description: 'Starts a local Autonomi testnet with EVM support - self-contained with all prerequisites'
author: 'MaidSafe'

branding:
icon: 'play-circle'
color: 'blue'

inputs:
autonomi-version:
description: 'Autonomi version to use (e.g., stable-2025.7.1.3)'
Expand Down