Skip to content

Commit 1c6272c

Browse files
committed
wip
1 parent ef582b3 commit 1c6272c

File tree

5 files changed

+24
-6
lines changed

5 files changed

+24
-6
lines changed

.github/workflows/check-pr.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,22 @@ 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+
- uses: actions/setup-java@v4
54+
with:
55+
distribution: 'temurin'
56+
java-version: '11'
57+
cache: 'sbt'
58+
- uses: foundry-rs/foundry-toolchain@v1
59+
- uses: sbt/setup-sbt@v1
60+
- run: |
61+
sbt --batch docker
62+
cd local-network
63+
./restart.sh
64+
env:
65+
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ fi
1414
export COMPOSE_PROFILES="${COMPOSE_PROFILES:-}"
1515
echo "Compose profiles are: ${COMPOSE_PROFILES}"
1616

17+
pwd
18+
find ../contracts
19+
1720
docker compose up -d
1821
docker compose logs deploy tests -f

0 commit comments

Comments
 (0)