Commit 9b7abfc
Eric Bower
·
2026-05-07 10:29:19 -0400 EDT
parent 7c5ac83
style(runner): tweaks
M
main.go
+25,
-1
| ... | ... | @@ -465,7 +465,31 @@ func eventHandler(cfg *Cfg, eventData *Event) error { | |
| 465 | 465 | ||
| 466 | 466 | manifest, err := eng.FindManifest() | |
| 467 | 467 | if err != nil { | |
| 468 | - | fmt.Fprintf(os.Stdout, "❌ %s\n", err) | |
| 468 | + | fmt.Fprintf(os.Stdout, "❌ %s\n\n", err) | |
| 469 | + | fmt.Fprint(os.Stdout, `Create a pico.sh script in your workspace root: | |
| 470 | + | ||
| 471 | + | #!/usr/bin/env bash | |
| 472 | + | set -euo pipefail | |
| 473 | + | ||
| 474 | + | export ZMX_SESSION_PREFIX="${ZMX_SESSION_PREFIX:-ci.}" | |
| 475 | + | ||
| 476 | + | # Run your CI steps as zmx sessions | |
| 477 | + | zmx run lint -d <your lint command> | |
| 478 | + | zmx run test -d <your test command> | |
| 479 | + | ||
| 480 | + | # Wait for all steps to complete | |
| 481 | + | zmx wait "*" | |
| 482 | + | ||
| 483 | + | printf "\x1b[32msuccess!\x1b[0m\n" | |
| 484 | + | ||
| 485 | + | Each 'zmx run' spawns a parallel session. 'zmx wait "*"' blocks | |
| 486 | + | until all child sessions finish. | |
| 487 | + | ||
| 488 | + | You can also run this script in isolation without the runner. | |
| 489 | + | ||
| 490 | + | See: https://github.com/picosh/pici | |
| 491 | + | ||
| 492 | + | `) | |
| 469 | 493 | return err | |
| 470 | 494 | } | |
| 471 | 495 | fmt.Fprintf(os.Stdout, "🔍 found %s\n", manifest) |
M
pico.sh
+1,
-1