-
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.
- Loading branch information
Showing
8 changed files
with
58 additions
and
82 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,37 @@ | ||
name: "iota-private-network setup" | ||
description: "Setup IOTA Sandbox" | ||
|
||
inputs: | ||
platform: | ||
description: "Platform to download binary for (linux or macos)" | ||
required: true | ||
default: "linux" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Set up IOTA Node | ||
shell: bash | ||
run: | | ||
mkdir -p iota | ||
cd iota | ||
# Select platform-specific asset pattern | ||
if [ "${{ inputs.platform }}" = "linux" ]; then | ||
PLATFORM="linux" | ||
else | ||
PLATFORM="macos" | ||
fi | ||
# Get download URL with simpler jq filter | ||
DOWNLOAD_URL=$(curl "https://api.github.com/repos/iotaledger/iota/releases/latest" | \ | ||
jq -r --arg p "$PLATFORM" '.assets[] | select(.name | contains($p)) | .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 & |
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 |
---|---|---|
|
@@ -130,10 +130,13 @@ jobs: | |
run: cargo build --workspace --tests --examples --release | ||
|
||
- name: Start iota sandbox | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: './.github/actions/iota-sandbox/setup' | ||
if: matrix.os != 'windows-latest' | ||
uses: './.github/actions/iota-rebase-sandbox/setup' | ||
with: | ||
platform: ${{ matrix.os == 'ubuntu-latest' && 'linux' || 'macos' }} | ||
|
||
- name: Run tests excluding `custom_time` feature | ||
if: matrix.os != 'windows-latest' | ||
run: cargo test --workspace --release | ||
|
||
- name: Run tests with `custom_time` feature | ||
|
@@ -157,10 +160,6 @@ jobs: | |
npm ci | ||
npm run test:readme:rust | ||
- name: Tear down iota sandbox | ||
if: matrix.os == 'ubuntu-latest' && always() | ||
uses: './.github/actions/iota-sandbox/tear-down' | ||
|
||
- name: Stop sccache | ||
uses: './.github/actions/rust/sccache/stop-sccache' | ||
with: | ||
|
@@ -204,16 +203,12 @@ 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' | ||
|
||
test-wasm-firefox: | ||
needs: build-wasm | ||
if: ${{ needs.check-for-run-condition.outputs.should-run == 'true' }} | ||
|
@@ -232,7 +227,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 +239,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] | ||
|
@@ -258,10 +253,6 @@ jobs: | |
- name: Run cypress | ||
run: docker run --network host cypress-test test:browser:parallel:firefox | ||
|
||
- name: Tear down iota sandbox | ||
if: always() | ||
uses: './.github/actions/iota-sandbox/tear-down' | ||
|
||
test-wasm-chrome: | ||
needs: build-wasm | ||
if: ${{ needs.check-for-run-condition.outputs.should-run == 'true' }} | ||
|
@@ -292,7 +283,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] | ||
|
@@ -305,7 +296,3 @@ jobs: | |
|
||
- name: Run cypress | ||
run: docker run --network host cypress-test test:browser:parallel:chrome | ||
|
||
- name: Tear down iota sandbox | ||
if: always() | ||
uses: './.github/actions/iota-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