Skip to content

Commit

Permalink
chore: update resolver CI
Browse files Browse the repository at this point in the history
  • Loading branch information
itsyaasir committed Nov 25, 2024
1 parent 5f261b0 commit 43250ef
Show file tree
Hide file tree
Showing 14 changed files with 6,715 additions and 1,914 deletions.
12 changes: 5 additions & 7 deletions .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
IOTA_NODE_ENDPOINT=
IOTA_NODE_AUTH_TOKEN=
IOTA_SMR_NODE_ENDPOINT=
IOTA_SMR_NODE_AUTH_TOKEN=
IOTA_CUSTOM_NETWORK_NAME=rms
IOTA_CUSTOM_NODE_ENDPOINT=https://api.testnet.shimmer.network
IOTA_CUSTOM_NODE_AUTH_TOKEN=
IOTA_CUSTOM_NODE_ENDPOINT=
IOTA_CUSTOM_IDENTITY_PKG_ID=

IOTA_MAINNET_IDENTITY_PKG_ID=
IOTA_MAINNET_NODE_ENDPOINT=
23 changes: 23 additions & 0 deletions .github/actions/iota-private-network/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "iota-private-network setup"
description: "Setup IOTA Sandbox"

runs:
using: composite
steps:
- name: Set up IOTA Node
shell: bash
run: |
# Install dependencies
mkdir -p iota
cd iota
# Use the output of https://api.github.com/repos/iotaledger/iota/releases/latest
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')
# Download and extract
curl -L -o iota.tar.gz $DOWNLOAD_URL
tar -xzf iota.tar.gz
- name: Start the Network
shell: bash
working-directory: iota
run: ./iota start --with-faucet --force-regenesis &
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.

14 changes: 4 additions & 10 deletions .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 @@ -14,15 +14,9 @@ jobs:
runs-on: ubuntu-latest
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: Rust setup
uses: ./.github/actions/rust/setup

- name: Check formatting
run: cargo fmt -- --check
- name: Run clippy
Expand Down
13 changes: 8 additions & 5 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'
uses: "./.github/actions/iota-private-network/setup"

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


.env
Loading

0 comments on commit 43250ef

Please sign in to comment.