Skip to content

Commit

Permalink
fix: use newest cli's and nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed May 21, 2024
1 parent f511359 commit 363ed81
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

[alias] # command aliases
bwl = "build --profile release-with-logs"
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 --rev v20.2.0 --debug --root ./target soroban-cli"
install_loam = "install --version 0.6.5 --debug --root ./target loam-cli"
install_soroban = "binstall -y --install-path ./target/bin soroban-cli --version 21.0.0-preview.1"
# install_soroban_dev = "install --git https://github.com/stellar/soroban-tools --rev v20.2.0 --debug --root ./target soroban-cli"
install_loam = "install --git https://github.com/loambuild/loam-sdk --rev 7eb6541d67160ac7bad3eeee5f72b8c94f4101de --debug --root ./target loam-cli"
# c = "check"
# t = "test"
r = "run --quiet"
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/standalone.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@

name: local

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

jobs:
test:
name: Test CLI
name: test RPC
runs-on: ubuntu-22.04
env:
SOROBAN_RPC_URL: http://localhost:8000/soroban/rpc
SOROBAN_NETWORK_PASSPHRASE: "Standalone Network ; February 2017"
SOROBAN_ACCOUNT: default
services:
rpc:
image: stellar/quickstart:testing
image: stellar/quickstart:v423-testing
ports:
- 8000:8000
env:
Expand All @@ -26,7 +29,6 @@ jobs:
--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 All @@ -36,11 +38,13 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: taiki-e/install-action@just
- uses: taiki-e/install-action@cargo-binstall
- run: rustup update
- run: rustup target add wasm32-unknown-unknown
- uses: taiki-e/install-action@just
- uses: taiki-e/install-action@nextest
- uses: cargo-bins/cargo-binstall@main
- run: just setup
- run: cargo nextest run
- run: just clean
- run: just publish_all
- run: just deployed_contracts
9 changes: 4 additions & 5 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ build +args='':

[private]
setup_default:
-soroban config identity generate default --config-dir $CONFIG_DIR
-soroban config identity generate default

@setup:
echo {{ if path_exists(soroban) == "true" { "" } else { `cargo install_soroban_dev` } }}
echo {{ if path_exists(loam) == "true" { "" } else { `cargo install_loam` } }}
echo {{ if path_exists(env_var('CONFIG_DIR') / '.soroban/identity/default.toml') == "true" { "" } else { `just setup_default` } }}
cargo binstall -y --install-path ./target/bin soroban-cli --version 21.0.0-preview.1
cargo install --git https://github.com/loambuild/loam-sdk --rev 7eb6541d67160ac7bad3eeee5f72b8c94f4101de --debug --root ./target loam-cli
just setup_default


@fund_default:
Expand All @@ -90,7 +90,6 @@ setup_default:
publish_all: fund_default deploy_self
#!/usr/bin/env bash
set -e;
echo $SOROBAN_NETWORK;
just install_self;
for name in $(loam build --ls)
do
Expand Down

0 comments on commit 363ed81

Please sign in to comment.