Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: resolver rebased #5

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
7 changes: 0 additions & 7 deletions .env

This file was deleted.

10 changes: 10 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# IOTA_CUSTOM_NODE_ENDPOINT=
# IOTA_CUSTOM_IDENTITY_PKG_ID=

# IOTA_MAINNET_IDENTITY_PKG_ID=
# IOTA_MAINNET_NODE_ENDPOINT=

NETWORK=testnet,custom

IOTA_CUSTOM_IDENTITY_PKG_ID=
IOTA_CUSTOM_NODE_ENDPOINT=
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"
36 changes: 0 additions & 36 deletions .github/actions/iota-sandbox/setup/action.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/actions/iota-sandbox/tear-down/action.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
types: [opened, synchronize, reopened, ready_for_review]
branches:
- main

Expand All @@ -23,6 +23,7 @@ jobs:
cargo --version --verbose
rustc --version
cargo clippy --version

- name: Check formatting
run: cargo fmt -- --check
- name: Run clippy
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,30 @@ on:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
types: [opened, synchronize, reopened, ready_for_review]
branches:
- main

jobs:
run-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v3

- name: Update local toolchain
run: |
rustup update
rustup component add clippy

- name: Toolchain info
run: |
cargo --version --verbose
rustc --version
cargo clippy --version
- name: Start iota sandbox
uses: './.github/actions/iota-sandbox/setup'

- name: Setup IOTA Sandbox
uses: ./.github/actions/iota-sandbox

- name: Run tests
run: cargo test --release
- name: Stop iota sandbox
uses: './.github/actions/iota-sandbox/tear-down'
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
/target

Cargo.lock

.env
Loading
Loading