File tree Expand file tree Collapse file tree 2 files changed +28
-6
lines changed Expand file tree Collapse file tree 2 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 28
28
- name : Check demo test
29
29
run : |
30
30
cd demo
31
- nix run .#demo -- run test
31
+ nix run .#demo -- --no-server run test
32
32
Original file line number Diff line number Diff line change 175
175
test = {
176
176
command = pkgs . writeShellApplication {
177
177
name = "demo-test" ;
178
+ runtimeInputs = [ pkgs . coreutils pkgs . cardano-cli pkgs . cardano-node self' . packages . hydra-node ] ;
178
179
text = ''
179
- echo "Waiting for demo to be ready..."
180
- # Wait for alice to be ready
181
- timeout 60 bash -c 'until grep -q "APIServerStarted" devnet/alice-logs.txt; do sleep 1; done'
182
- echo "✅ Demo is ready!"
180
+ set -euo pipefail
181
+
182
+ echo "--- Testing demo components"
183
+
184
+ # Test that we can build and run basic components
185
+ echo "Testing cardano-cli..."
186
+ ${ pkgs . cardano-cli } /bin/cardano-cli --version
187
+
188
+ echo "Testing cardano-node..."
189
+ ${ pkgs . cardano-node } /bin/cardano-node --version
190
+
191
+ echo "--- Testing demo setup"
192
+ ./prepare-devnet.sh
193
+ echo "✅ Demo setup completed successfully"
194
+
195
+ echo "--- Testing that devnet files exist"
196
+ if [ -f "devnet/cardano-node.json" ] && [ -f "devnet/topology.json" ]; then
197
+ echo "✅ Devnet configuration files created"
198
+ else
199
+ echo "❌ Devnet configuration files missing"
200
+ exit 1
201
+ fi
202
+
203
+ echo "--- Testing hydra-node"
204
+ hydra-node --version
183
205
'' ;
184
206
} ;
185
- depends_on . "hydra-node-alice " . condition = "process_log_ready " ;
207
+ depends_on . "prepare-devnet " . condition = "process_completed " ;
186
208
} ;
187
209
} ;
188
210
} ;
You can’t perform that action at this time.
0 commit comments