Skip to content

Commit 15f26eb

Browse files
committed
fix(ci): fix payment-channel-xlm ci
Signed-off-by: Minh Huy Tran <[email protected]>
1 parent 293dc4b commit 15f26eb

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,17 @@ jobs:
2323
restore-keys: |
2424
${{ runner.os }}-go-
2525
26-
- uses: dfinity/setup-dfx@main
26+
- name: Install Internet Computer SDK
27+
uses: dfinity/setup-dfx@main
2728
with:
2829
dfx-version: 0.25.1
2930

31+
- name: Build Stellar Devchain Image
32+
working-directory: payment-channel-xlm
33+
run: |
34+
chmod +x ./testdata/docker/build.sh
35+
./testdata/docker/build.sh
36+
3037
- name: Pull ganache-cli image
3138
run: docker pull ${{ env.ganache-image }}
3239

@@ -59,6 +66,7 @@ jobs:
5966
sleep 50
6067
go run ./
6168
docker stop stellar soroban-preview
69+
docker rm -f stellar soroban-preview
6270
6371
- name: Payment Channel Cross-Contract
6472
working-directory: payment-channel-cc

payment-channel-xlm/quickstart.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,13 @@ docker run -d \
5959
--network soroban-network \
6060
soroban-preview:10
6161

62+
echo "Cleaning up any existing stellar container"
63+
docker rm -f stellar 2>/dev/null || true
64+
6265
# Start the stellar quickstart container
6366
if [[ "$DETACHED" == "1" ]]; then
6467
echo "Running stellar quickstart container in detached mode"
65-
docker run -d \
68+
docker run --rm -d \
6669
--name stellar \
6770
--pull always \
6871
--network soroban-network \

0 commit comments

Comments
 (0)