| 1 |
// spectra-vscode's pipeline (OxygenFlow): typecheck, bundle, unit tests and |
| 2 |
// packaging, offline in a microVM for every push. |
| 3 |
schema-version 1 |
| 4 |
|
| 5 |
// The OxygenFlow Node image: its npm cache holds every package this |
| 6 |
// repository's package-lock.json needs. |
| 7 |
sandbox "node" { |
| 8 |
runtime "microvm" |
| 9 |
rootfs "cas://blob/836461b613019f62399a960c61a25c482eb74e30054ff2cd44d5594c3305872b" |
| 10 |
memory-limit "4GiB" |
| 11 |
cpu-limit 2 |
| 12 |
network "loopback" |
| 13 |
} |
| 14 |
|
| 15 |
job "check" { |
| 16 |
sandbox "node" |
| 17 |
exec "sh" "-euc" "npm ci --offline --cache /opt/npm-cache --no-audit --no-fund && npm run check" |
| 18 |
} |
| 19 |
|
| 20 |
job "package" { |
| 21 |
sandbox "node" |
| 22 |
depends-on "check" |
| 23 |
exec "sh" "-euc" "npm ci --offline --cache /opt/npm-cache --no-audit --no-fund && npm run build && npm run package -- --baseContentUrl https://oxygenhub.io/andymccall/spectra-vscode/raw/main" |
| 24 |
} |