diff --git a/.claude/settings.local.json b/.claude/settings.local.json deleted file mode 100644 index e9cbd97..0000000 --- a/.claude/settings.local.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "permissions": { - "allow": [ - "Bash(ls:*)", - "Bash(find:*)", - "Bash(mkdir:*)", - "Bash(git add:*)", - "WebFetch(domain:github.com)" - ], - "deny": [] - } -} \ No newline at end of file diff --git a/README.md b/README.md index 1adc196..b9fc695 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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) diff --git a/cleanup-autonomi-network/action.yml b/cleanup-autonomi-network/action.yml index 20c1313..71d2a4f 100644 --- a/cleanup-autonomi-network/action.yml +++ b/cleanup-autonomi-network/action.yml @@ -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' diff --git a/examples/basic-usage.yml b/examples/basic-usage.yml index c8e0559..68887c9 100644 --- a/examples/basic-usage.yml +++ b/examples/basic-usage.yml @@ -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" diff --git a/spawn-autonomi-network/action.yml b/spawn-autonomi-network/action.yml index 06f5c21..9c95c66 100644 --- a/spawn-autonomi-network/action.yml +++ b/spawn-autonomi-network/action.yml @@ -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)'