Skip to content

Commit c0ba0c6

Browse files
grumbachclaude
andauthored
Cleanup for release (#3)
* Add CI workflow to test Autonomi GitHub Actions - Test spawn-autonomi-network and cleanup-autonomi-network actions - Validate network functionality with ant CLI file upload/download - Simple test to verify network is operational 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * chore: cleanup ci * Extract and set SECRET_KEY from EVM testnet for ant CLI operations - Capture evm-testnet output to extract deployer secret key - Set SECRET_KEY environment variable for CLI payment operations - Add proper error handling and debugging output - Increase wait time for EVM testnet initialization 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * fix: ant test * fix: ant test * fix: local * Fix CI workflow - use --local flag and correct file address pattern - Change from --peer to --local flag for ant CLI commands - Update file address extraction pattern to 'At address: [hex]+' - Remove unnecessary wallet creation fallback - Simplify filenames and improve debugging output 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Polish documentation and add action branding - Update README with correct usage patterns and --local flag examples - Add SECRET_KEY to environment variables documentation - Update examples to show working ant CLI patterns - Add proper branding icons and colors to actions - Keep maidsafe references for official repository - Clean up examples with realistic test scenarios 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
1 parent 2b8d917 commit c0ba0c6

File tree

5 files changed

+27
-20
lines changed

5 files changed

+27
-20
lines changed

.claude/settings.local.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Starts a local Autonomi testnet with optional EVM support. This action handles a
1414
- Configurable node count and network settings
1515
- Automatic peer discovery and network verification
1616
- Support for custom rewards addresses
17+
- Automatically extracts and sets SECRET_KEY for ant CLI operations
1718

1819
**Usage:**
1920
```yaml
@@ -105,8 +106,14 @@ jobs:
105106
106107
- name: Run your tests
107108
run: |
108-
# Your test commands here
109-
# The network peer address is available as: ${{ steps.start-network.outputs.peer-address }}
109+
# Your test commands here using ant CLI
110+
# Use --local flag to connect to the local network automatically
111+
112+
# Example: Upload a file
113+
echo "Test data" > test.txt
114+
ant --local file upload test.txt --public
115+
116+
# The network peer address is also available as: ${{ steps.start-network.outputs.peer-address }}
110117
echo "Network is running, peer: ${{ steps.start-network.outputs.peer-address }}"
111118
112119
- name: Cleanup Autonomi Network
@@ -122,9 +129,12 @@ jobs:
122129
The actions set up several environment variables that your tests can use:
123130

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

136+
**Note:** When using the ant CLI with these actions, you can use the `--local` flag which automatically connects to the local network setup.
137+
128138
## Requirements
129139

130140
- **OS**: Ubuntu (latest versions recommended)

cleanup-autonomi-network/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: 'Cleanup Autonomi Network'
22
description: 'Stops local Autonomi testnet and EVM processes, cleans up resources'
33
author: 'MaidSafe'
44

5+
branding:
6+
icon: 'trash-2'
7+
color: 'red'
8+
59
inputs:
610
upload-logs:
711
description: 'Whether to upload logs as artifacts'

examples/basic-usage.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ jobs:
3838
3939
- name: Run basic network tests
4040
run: |
41-
# Example: Test network connectivity using the peer address
41+
# Example: Test network connectivity and basic operations
4242
echo "Testing network with peer: $ANT_PEERS"
43+
echo "SECRET_KEY available: ${SECRET_KEY:+YES}${SECRET_KEY:-NO}"
4344
44-
# Add your actual test commands here
45-
# For example:
46-
# - Upload/download files to the network
47-
# - Test smart contract deployment if EVM is enabled
48-
# - Verify network nodes are responding
45+
# Test basic ant CLI operations
46+
echo "Test file content" > test-file.txt
47+
48+
# Upload file to network using --local flag
49+
ant --local file upload test-file.txt --public
4950
5051
echo "✅ Basic tests completed"
5152

spawn-autonomi-network/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: 'Spawn Autonomi Network'
22
description: 'Starts a local Autonomi testnet with EVM support - self-contained with all prerequisites'
33
author: 'MaidSafe'
44

5+
branding:
6+
icon: 'play-circle'
7+
color: 'blue'
8+
59
inputs:
610
autonomi-version:
711
description: 'Autonomi version to use (e.g., stable-2025.7.1.3)'

0 commit comments

Comments
 (0)