Skip to content

Commit

Permalink
fix: CI (#22)
Browse files Browse the repository at this point in the history
* feat: fix call and install

* fix: delete standalone and reconstruct in justfile
  • Loading branch information
willemneal authored Oct 30, 2023
1 parent b6f36aa commit 8bc64a1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

[alias] # command aliases
bwl = "build --profile release-with-logs"
install_soroban_dev = "install --git https://github.com/stellar/soroban-tools --tag v20.0.0-rc.4.1 --debug --root ./target soroban-cli"
install_soroban = "binstall -y --install-path ./target/bin soroban-cli --version 20.0.0-rc.4.1"
install_soroban_dev = "install --git https://github.com/stellar/soroban-tools --tag v20.0.0-rc.4.1 --debug --root ./target soroban-cli"
install_loam = "install --version 0.6.5 --debug --root ./target loam-cli"
# c = "check"
# t = "test"
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/standalone.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
name: standalone RPC

on: [push]
name: local

on:
push:
branches: [main, release/**]
pull_request:

jobs:
test:
name: test generated libraries
runs-on: ubuntu-20.04
name: Test CLI
runs-on: ubuntu-22.04
services:
rpc:
image: stellar/quickstart:soroban-dev@sha256:c1030a6ee75c31ba6807b8feddded2af23789b5f2c9be3ac55a550630a35ef42
image: stellar/quickstart:testing
ports:
- 8000:8000
env:
ENABLE_LOGS: true
NETWORK: local
ENABLE_SOROBAN_RPC: true
options: >-
--health-cmd "curl -X POST \"http://localhost:8000/soroban/rpc\""
--health-cmd "curl --no-progress-meter --fail-with-body -X POST \"http://localhost:8000/soroban/rpc\" -H 'Content-Type: application/json' -d '{\"jsonrpc\":\"2.0\",\"id\":8675309,\"method\":\"getNetwork\"}' && curl --no-progress-meter \"http://localhost:8000/friendbot\" | grep '\"invalid_field\": \"addr\"'"
--health-interval 10s
--health-timeout 5s
--health-retries 5
--health-retries 50
steps:
- uses: actions/checkout@v3
- run: "curl --fail-with-body -X POST \"http://localhost:8000/soroban/rpc\" -H 'Content-Type: application/json' -d '{\"jsonrpc\":\"2.0\",\"id\":8675309,\"method\":\"getNetwork\"}'"
- uses: actions/cache@v3
with:
path: |
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/target/
.soroban
!.soroban/network/futurenet/contract_id.json

2 changes: 0 additions & 2 deletions .soroban/network/standalone.toml

This file was deleted.

8 changes: 5 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ id:=`cat contract_id.txt`
ROOT_DIR := 'target/contracts/smartdeploy'

[private]
@default: setup
@just build
@default: setup build
soroban config network add standalone \
--rpc-url http://localhost:8000/soroban/rpc \
--network-passphrase "Standalone Network ; February 2017"

@soroban +args:
{{soroban}} {{args}}
Expand Down Expand Up @@ -143,7 +145,7 @@ start_docker:
-p 8000:8000 \
--name stellar \
stellar/quickstart:soroban-dev@sha256:c1030a6ee75c31ba6807b8feddded2af23789b5f2c9be3ac55a550630a35ef42 \
--standalone \
--local \
--enable-soroban-rpc \

smartdeploy_id:
Expand Down

0 comments on commit 8bc64a1

Please sign in to comment.