Skip to content

Commit 8fbda9e

Browse files
committed
wip
1 parent ef582b3 commit 8fbda9e

File tree

5 files changed

+24
-6
lines changed

5 files changed

+24
-6
lines changed

.github/workflows/check-pr.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,24 @@ jobs:
4444
path: consensus-client-it/target/test-logs
4545
if-no-files-found: warn
4646
retention-days: 14
47+
48+
local-network:
49+
name: Run Local Network tests
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v4
53+
with:
54+
submodules: recursive
55+
- uses: actions/setup-java@v4
56+
with:
57+
distribution: 'temurin'
58+
java-version: '11'
59+
cache: 'sbt'
60+
- uses: foundry-rs/foundry-toolchain@v1
61+
- uses: sbt/setup-sbt@v1
62+
- run: |
63+
sbt --batch docker
64+
cd local-network
65+
./restart.sh
66+
env:
67+
COMPOSE_PROFILES: tests

local-network/deploy/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,4 @@ RUN curl -L https://foundry.paradigm.xyz | bash && foundryup
88
COPY pyproject.toml ./
99
RUN pip install --no-cache-dir .
1010

11-
# 0.8.29 is not supported on Apple ARM, see https://github.com/foundry-rs/foundry/issues/6665#issuecomment-2101885706
12-
# So we install this manually
13-
RUN solc-select use 0.8.29 --always-install
14-
1511
CMD ["/bin/bash", "run.sh"]

local-network/deploy/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
atomic_amount_for_each * cl_poor_accounts_number,
8282
reissuable=True,
8383
txFee=500_000,
84-
)
84+
)["id"]
8585
waves.wait_for_approval(log, reissue_txn_id)
8686
log.info("Additional tokens issued")
8787

local-network/deploy/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "0.1"
88
description = "Scripts and tests for a locally deployed Unit network"
99
dependencies = [
1010
"solc-select",
11-
"units-network @ git+https://github.com/UnitsNetwork/examples.git",
11+
"units-network @ git+https://github.com/UnitsNetwork/examples.git@block-delay-on-contract",
1212
]
1313
readme = "README.md"
1414
requires-python = ">=3.9"

local-network/restart.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
set -eu
23

34
DIR="$(cd "$(dirname "$0")" && pwd)"
45
cd "${DIR}" || exit

0 commit comments

Comments
 (0)