Skip to content

Commit 43250ef

Browse files
committed
chore: update resolver CI
1 parent 5f261b0 commit 43250ef

File tree

14 files changed

+6715
-1914
lines changed

14 files changed

+6715
-1914
lines changed

.env

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
IOTA_NODE_ENDPOINT=
2-
IOTA_NODE_AUTH_TOKEN=
3-
IOTA_SMR_NODE_ENDPOINT=
4-
IOTA_SMR_NODE_AUTH_TOKEN=
5-
IOTA_CUSTOM_NETWORK_NAME=rms
6-
IOTA_CUSTOM_NODE_ENDPOINT=https://api.testnet.shimmer.network
7-
IOTA_CUSTOM_NODE_AUTH_TOKEN=
1+
IOTA_CUSTOM_NODE_ENDPOINT=
2+
IOTA_CUSTOM_IDENTITY_PKG_ID=
3+
4+
IOTA_MAINNET_IDENTITY_PKG_ID=
5+
IOTA_MAINNET_NODE_ENDPOINT=
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "iota-private-network setup"
2+
description: "Setup IOTA Sandbox"
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Set up IOTA Node
8+
shell: bash
9+
run: |
10+
# Install dependencies
11+
mkdir -p iota
12+
cd iota
13+
# Use the output of https://api.github.com/repos/iotaledger/iota/releases/latest
14+
15+
DOWNLOAD_URL=$(curl "https://api.github.com/repos/iotaledger/iota/releases" | jq -r '.[0].assets[] | select(.name | contains("iota") and contains("linux")) | .browser_download_url')
16+
# Download and extract
17+
curl -L -o iota.tar.gz $DOWNLOAD_URL
18+
tar -xzf iota.tar.gz
19+
20+
- name: Start the Network
21+
shell: bash
22+
working-directory: iota
23+
run: ./iota start --with-faucet --force-regenesis &

.github/actions/iota-sandbox/setup/action.yml

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

.github/actions/iota-sandbox/tear-down/action.yml

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

.github/workflows/clippy.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
pull_request:
8-
types: [ opened, synchronize, reopened, ready_for_review ]
8+
types: [opened, synchronize, reopened, ready_for_review]
99
branches:
1010
- main
1111

@@ -14,15 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17-
- name: Update local toolchain
18-
run: |
19-
rustup update
20-
rustup component add clippy
21-
- name: Toolchain info
22-
run: |
23-
cargo --version --verbose
24-
rustc --version
25-
cargo clippy --version
17+
- name: Rust setup
18+
uses: ./.github/actions/rust/setup
19+
2620
- name: Check formatting
2721
run: cargo fmt -- --check
2822
- name: Run clippy

.github/workflows/run-tests.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,30 @@ on:
55
branches:
66
- main
77
pull_request:
8-
types: [ opened, synchronize, reopened, ready_for_review ]
8+
types: [opened, synchronize, reopened, ready_for_review]
99
branches:
1010
- main
1111

1212
jobs:
1313
run-tests:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
15+
1516
steps:
1617
- uses: actions/checkout@v3
18+
1719
- name: Update local toolchain
1820
run: |
1921
rustup update
2022
rustup component add clippy
23+
2124
- name: Toolchain info
2225
run: |
2326
cargo --version --verbose
2427
rustc --version
2528
cargo clippy --version
29+
2630
- name: Start iota sandbox
27-
uses: './.github/actions/iota-sandbox/setup'
31+
uses: "./.github/actions/iota-private-network/setup"
32+
2833
- name: Run tests
2934
run: cargo test --release
30-
- name: Stop iota sandbox
31-
uses: './.github/actions/iota-sandbox/tear-down'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
/target
2+
3+
4+
.env

0 commit comments

Comments
 (0)