Skip to content

Commit 1c36004

Browse files
committed
fix: include vitest smoke test in CI
1 parent 88aeeb7 commit 1c36004

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ episodes/
2929
*.flac
3030
*.ogg
3131

32-
# Checked-in TypeScript source files
32+
# Checked-in TypeScript source/test files
3333
!src/*.ts
3434
!src/**/*.ts
35+
!tests/*.ts
36+
!tests/**/*.ts

tests/smoke.test.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { describe, expect, test } from "vitest";
2+
import { execFileSync } from "node:child_process";
3+
4+
const smokeTests = [
5+
"tests/test_transcribe_video.sh",
6+
"tests/test_prepare_transcript_analysis.sh",
7+
"tests/test_scan_podcast.sh",
8+
"tests/test_cut_clips.sh",
9+
"tests/test_download_sample_media.sh",
10+
"tests/test_launcher.sh",
11+
];
12+
13+
describe("podguy smoke tests", () => {
14+
for (const script of smokeTests) {
15+
test(
16+
script,
17+
() => {
18+
execFileSync("bash", [script], { stdio: "inherit" });
19+
expect(true).toBe(true);
20+
},
21+
180_000,
22+
);
23+
}
24+
});

0 commit comments

Comments
 (0)