Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): rebase ci #1425

Merged
merged 4 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/actions/iota-rebase-sandbox/setup/action.yml
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 &
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.

4 changes: 2 additions & 2 deletions .github/actions/release/changelog-generator/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ runs:
fi
echo SINCE_ARG=$SINCE_ARG
echo SINCE_ARG=$SINCE_ARG >> $GITHUB_ENV

- name: Prepare Repository For Changelog Generator
shell: bash
run: |
GITHUB_REPOSITORY_USER=$( echo $GITHUB_REPOSITORY | awk -F'/' '{print $1}')
GITHUB_REPOSITORY_PROJECT=$( echo $GITHUB_REPOSITORY | awk -F'/' '{print $2}')
GITHUB_REPOSITORY_PROJECT=$( echo $GITHUB_REPOSITORY | awk -F'/' '{print $2}')

echo GITHUB_REPOSITORY_USER=$GITHUB_REPOSITORY_USER
echo GITHUB_REPOSITORY_PROJECT=$GITHUB_REPOSITORY_PROJECT
Expand Down
31 changes: 9 additions & 22 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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' }}
Expand All @@ -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
Expand All @@ -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]
Expand All @@ -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' }}
Expand Down Expand Up @@ -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]
Expand All @@ -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'
2 changes: 1 addition & 1 deletion identity_iota/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ To try out the [examples](https://github.com/iotaledger/identity.rs/blob/HEAD/ex
## Example: Creating an Identity

The following code creates and publishes a new IOTA DID Document to a locally running private network.
See the [instructions](https://github.com/iotaledger/iota-sandbox) on running your own private network for development.
See the [instructions](https://github.com/iotaledger/iota/docker/iota-private-network) on running your own private network for development.

_Cargo.toml_

Expand Down