Skip to content

Commit

Permalink
Smoke test on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Jun 4, 2024
1 parent be734ab commit 1c5dcd4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,22 @@ jobs:
pkill --echo hc && pkill --echo holochain && pkill --echo lair-keystore
- name: Smoke test - remote_call
run: |
# Start a sandbox conductor and run it in the background
nix develop --command bash -c "hc s clean && echo "1234" | hc s --piped create && echo "1234" | hc s --piped -f 8888 run &"
# Start a TryCP instance
nix develop --command bash -c "start_trycp"
# Run the scenario for 5 seconds
RUST_LOG=info nix run .#remote_call -- --targets targets-ci.yaml --duration 5 --no-progress
# Stop the TryCP instance
nix develop --command bash -c "stop_trycp"
pkill --echo hc && pkill --echo holochain && pkill --echo lair-keystore
- name: Build scenario bundles
run: |
set -euxo pipefail
Expand Down
3 changes: 3 additions & 0 deletions targets-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
description: Target nodes for CI smoke tests to connect to
nodes:
- ws://localhost:9000

0 comments on commit 1c5dcd4

Please sign in to comment.