Skip to content

Commit

Permalink
feat: rework the resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
itsyaasir committed Dec 2, 2024
1 parent 5f261b0 commit cffbf21
Show file tree
Hide file tree
Showing 16 changed files with 249 additions and 4,869 deletions.
7 changes: 0 additions & 7 deletions .env

This file was deleted.

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

IOTA_MAINNET_IDENTITY_PKG_ID=
IOTA_MAINNET_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

0 comments on commit cffbf21

Please sign in to comment.