mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
e968bff3f1
* +scripts/test-all.ts
29 lines
553 B
TypeScript
Executable file
29 lines
553 B
TypeScript
Executable file
#!/usr/bin/env -S tea -E
|
|
|
|
/*---
|
|
args:
|
|
- deno
|
|
- run
|
|
- --allow-run
|
|
- --allow-read
|
|
- --allow-env
|
|
- --import-map={{ srcroot }}/import-map.json
|
|
---*/
|
|
|
|
import { Path } from "types"
|
|
import { ls } from "./ls.ts"
|
|
|
|
const cwd = new Path(new URL(import.meta.url).pathname).parent().string
|
|
|
|
for await (const { project } of ls()) {
|
|
const proc = Deno.run({
|
|
stdout: "null", stderr: "null",
|
|
cmd: ["./test.ts", project],
|
|
cwd
|
|
})
|
|
const status = await proc.status()
|
|
if (status.code !== 0) {
|
|
console.error(`test failed: ${project}`)
|
|
}
|
|
}
|