Skip to content

Commit

Permalink
chore: add rebase sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
itsyaasir committed Dec 2, 2024
1 parent 4680834 commit 0e61fd4
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/actions/iota-sandbox/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "iota-private-network setup"
description: "Setup IOTA Sandbox"

runs:
using: composite
steps:
- name: Set up IOTA Node
shell: bash
run: |
set -e
mkdir -p iota
cd iota
# Set platform
PLATFORM="${{ inputs.platform }}"
echo "Looking for platform: $PLATFORM"
# pinned releases from:
# url = https://api.github.com/repos/iotaledger/iota/releases/latest
# releases might be visible before all binaries are available, so refer to fixed binaries here
DOWNLOAD_URL="https://github.com/iotaledger/iota/releases/download/v0.7.3-rc/iota-v0.7.3-rc-linux-x86_64.tgz"
# Download and extract
echo "Downloading from: $DOWNLOAD_URL"
curl -L -o iota.tar.gz $DOWNLOAD_URL
tar -xzf iota.tar.gz
echo "$PWD" >> $GITHUB_PATH
export PATH="$PWD:$PATH"
which iota || echo "iota not found in PATH"
ls -la "$PWD"
3 changes: 3 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@ jobs:
rustc --version
cargo clippy --version
- name: Setup IOTA Sandbox
uses: ./.github/actions/iota-sandbox

- name: Run tests
run: cargo test --release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/target

Cargo.lock

.env

0 comments on commit 0e61fd4

Please sign in to comment.