-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace iota-sandbox actions with iota-private-network acti…
…ons and update dependencies
- Loading branch information
Showing
10 changed files
with
88 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: "iota-private-network setup" | ||
description: "Setup IOTA Sandbox" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Checkout IOTA repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: "iotaledger/iota" | ||
ref: "develop" | ||
path: "iota" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: list files | ||
shell: bash | ||
run: ls -la docker/iota-private-network | ||
|
||
- name: build docker images | ||
shell: bash | ||
run: | | ||
cd docker/iota-private-network | ||
../iota-node/build.sh -t iota-node --no-cache | ||
../iota-indexer/build.sh -t iota-indexer --no-cache | ||
../iota-tools/build.sh -t iota-tools --no-cache | ||
- name: Bootstrap the network | ||
shell: bash | ||
run: ./bootstrap.sh | ||
working-directory: iota/docker/iota-private-network | ||
|
||
- name: Start the Network | ||
shell: bash | ||
run: ./run.sh faucet | ||
working-directory: iota/docker/iota-private-network | ||
|
||
- name: Wait for iota network to start | ||
shell: bash | ||
run: wget -qO- https://raw.githubusercontent.com/eficode/wait-for/$WAIT_FOR_VERSION/wait-for | sh -s -- -t 60 http://127.0.0.1:9000 -- echo "IOTA full node is up" | ||
env: | ||
WAIT_FOR_VERSION: 4df3f9262d84cab0039c07bf861045fbb3c20ab7 # v2.2.3 | ||
|
||
- name: Wait for faucet to start | ||
shell: bash | ||
run: wget -qO- https://raw.githubusercontent.com/eficode/wait-for/$WAIT_FOR_VERSION/wait-for | sh -s -- -t 60 http://127.0.0.1:5003 -- echo "Faucet is up" | ||
env: | ||
WAIT_FOR_VERSION: 4df3f9262d84cab0039c07bf861045fbb3c20ab7 # v2.2.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: "iota-private-network-tear-down" | ||
description: "tear-down a iota private network" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Tear down iota sandbox | ||
shell: bash | ||
run: | | ||
cd iota/docker/iota-private-network | ||
docker compose down | ||
cd ../.. | ||
sudo rm -rf iota |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
- 'epic/**' | ||
|
@@ -62,12 +62,12 @@ jobs: | |
build-and-test: | ||
runs-on: ${{ matrix.os }} | ||
needs: [ check-for-run-condition, check-for-modification ] | ||
needs: [check-for-run-condition, check-for-modification] | ||
if: ${{ needs.check-for-run-condition.outputs.should-run == 'true' && needs.check-for-modification.outputs.core-modified == 'true' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
include: | ||
- os: ubuntu-latest | ||
sccache-path: /home/runner/.cache/sccache | ||
|
@@ -131,7 +131,7 @@ jobs: | |
|
||
- name: Start iota sandbox | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: './.github/actions/iota-sandbox/setup' | ||
uses: './.github/actions/iota-rebase-sandbox/setup' | ||
|
||
- name: Run tests excluding `custom_time` feature | ||
run: cargo test --workspace --release | ||
|
@@ -159,7 +159,7 @@ jobs: | |
- name: Tear down iota sandbox | ||
if: matrix.os == 'ubuntu-latest' && always() | ||
uses: './.github/actions/iota-sandbox/tear-down' | ||
uses: './.github/actions/iota-rebase-sandbox/tear-down' | ||
|
||
- name: Stop sccache | ||
uses: './.github/actions/rust/sccache/stop-sccache' | ||
|
@@ -181,7 +181,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
os: [ubuntu-latest] | ||
include: | ||
- os: ubuntu-latest | ||
|
||
|
@@ -204,15 +204,15 @@ jobs: | |
path: bindings/wasm | ||
|
||
- name: Start iota sandbox | ||
uses: './.github/actions/iota-sandbox/setup' | ||
uses: './.github/actions/iota-rebase-sandbox/setup' | ||
|
||
- name: Run Wasm examples | ||
run: npm run test:readme && npm run test:node | ||
working-directory: bindings/wasm | ||
|
||
- name: Tear down iota sandbox | ||
if: always() | ||
uses: './.github/actions/iota-sandbox/tear-down' | ||
uses: './.github/actions/iota-rebase-sandbox/tear-down' | ||
|
||
test-wasm-firefox: | ||
needs: build-wasm | ||
|
@@ -221,7 +221,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
os: [ubuntu-latest] | ||
include: | ||
- os: ubuntu-latest | ||
|
||
|
@@ -232,7 +232,7 @@ jobs: | |
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install JS dependencies | ||
run: npm ci | ||
working-directory: bindings/wasm | ||
|
@@ -244,7 +244,7 @@ jobs: | |
path: bindings/wasm | ||
|
||
- name: Start iota sandbox | ||
uses: './.github/actions/iota-sandbox/setup' | ||
uses: './.github/actions/iota-rebase-sandbox/setup' | ||
|
||
- name: Build Docker image | ||
uses: docker/[email protected] | ||
|
@@ -260,7 +260,7 @@ jobs: | |
|
||
- name: Tear down iota sandbox | ||
if: always() | ||
uses: './.github/actions/iota-sandbox/tear-down' | ||
uses: './.github/actions/iota-rebase-sandbox/tear-down' | ||
|
||
test-wasm-chrome: | ||
needs: build-wasm | ||
|
@@ -269,7 +269,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
os: [ubuntu-latest] | ||
include: | ||
- os: ubuntu-latest | ||
|
||
|
@@ -292,7 +292,7 @@ jobs: | |
path: bindings/wasm | ||
|
||
- name: Start iota sandbox | ||
uses: './.github/actions/iota-sandbox/setup' | ||
uses: './.github/actions/iota-rebase-sandbox/setup' | ||
|
||
- name: Build Docker image | ||
uses: docker/[email protected] | ||
|
@@ -308,4 +308,4 @@ jobs: | |
|
||
- name: Tear down iota sandbox | ||
if: always() | ||
uses: './.github/actions/iota-sandbox/tear-down' | ||
uses: './.github/actions/iota-rebase-sandbox/tear-down' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters