Skip to content

Commit ae59ba6

Browse files
committed
Skip unrunnable test in CI
1 parent aabe056 commit ae59ba6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/suite/extensionIntegration.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ suite("Extension Integration", () => {
1616
.toString()
1717
.trim();
1818

19+
if (!expectedBranch) {
20+
console.log(
21+
"Skipping test: Not on any git branch. Happens with GitHub Actions.",
22+
);
23+
return;
24+
}
25+
1926
const commitMessage = path.join(__dirname, "COMMIT_EDITMSG");
2027
fs.writeFileSync(commitMessage, "For testing\n\nThese are some words.\n");
2128

0 commit comments

Comments
 (0)