Skip to content

Commit

Permalink
Test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron committed Mar 25, 2024
1 parent d9eea41 commit 9dc6fc4
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 75 deletions.
47 changes: 0 additions & 47 deletions .github/actions/private-tangle/setup/action.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/actions/private-tangle/tear-down/action.yml

This file was deleted.

12 changes: 8 additions & 4 deletions .github/workflows/bindings-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ jobs:
working-directory: bindings/wasm/
run: yarn build

- name: Start private tangle
- name: Start Sandbox
if: ${{ startsWith(matrix.os, 'ubuntu') }}
uses: "./.github/actions/private-tangle/setup"
uses: 'iotaledger/iota-sandbox/.github/actions/setup@add-action'
with:
branch: add-action

- name: Run Yarn Test
if: ${{ startsWith(matrix.os, 'ubuntu') }}
Expand All @@ -97,9 +99,11 @@ jobs:
# Only run test that doesn't require a node because we can't use the private tangle script on macos and windows
run: yarn test -t 'Wallet methods'

- name: Tear down private tangle
- name: Tear down Sandbox
if: ${{ startsWith(matrix.os, 'ubuntu') }}
uses: "./.github/actions/private-tangle/tear-down"
uses: 'iotaledger/iota-sandbox/.github/actions/tear-down@add-action'
with:
branch: add-action

lint:
name: Lint
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,22 @@ jobs:
- name: Install nextest
uses: taiki-e/install-action@nextest

- name: Start private tangle
uses: "./.github/actions/private-tangle/setup"
- name: Start Sandbox
uses: 'iotaledger/iota-sandbox/.github/actions/setup@add-action'
with:
branch: add-action

- name: Start ledger nano
uses: "./.github/actions/ledger-nano"

- name: Collect coverage data
run: cargo ci-coverage

- name: Tear down private tangle
- name: Tear down Sandbox
if: always()
uses: "./.github/actions/private-tangle/tear-down"
uses: 'iotaledger/iota-sandbox/.github/actions/tear-down@add-action'
with:
branch: add-action

- name: Upload coverage data to Coveralls
uses: coverallsapp/[email protected]
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/private-tangle-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,19 @@ jobs:
- name: Cache dependencies
uses: Swatinem/rust-cache@v2

- name: Start private tangle
uses: "./.github/actions/private-tangle/setup"
- name: Start Sandbox
uses: 'iotaledger/iota-sandbox/.github/actions/setup@add-action'
with:
branch: add-action

- name: Start ledger nano
uses: "./.github/actions/ledger-nano"

- name: Run tests
run: cargo ci-tangle-test

- name: Tear down private tangle
- name: Tear down Sandbox
if: always()
uses: "./.github/actions/private-tangle/tear-down"
uses: 'iotaledger/iota-sandbox/.github/actions/tear-down@add-action'
with:
branch: add-action
13 changes: 13 additions & 0 deletions .github/workflows/protocol_parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": 2,
"networkName": "sandbox1",
"bech32HRP": "rms",
"minPoWScore": 0,
"belowMaxDepth": 15,
"rentStructure": {
"vByteCost": 100,
"vByteFactorData": 1,
"vByteFactorKey": 10
},
"tokenSupply": "1813620509061365"
}
4 changes: 2 additions & 2 deletions sdk/tests/client/common/constants.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

pub static NODE_LOCAL: &str = "http://localhost:14265";
pub static NODE_LOCAL: &str = "http://localhost";

pub static FAUCET_URL: &str = "http://localhost:8091/api/enqueue";
pub static FAUCET_URL: &str = "http://localhost/faucet/api/enqueue";

0 comments on commit 9dc6fc4

Please sign in to comment.