diff --git a/index.js b/index.js index c5914d5..68f5396 100644 --- a/index.js +++ b/index.js @@ -29,6 +29,7 @@ import vela from "./services/vela.js"; import vercel from "./services/vercel.js"; import wercker from "./services/wercker.js"; import woodpecker from "./services/woodpecker.js"; +import jetbrainsSpace from "./services/jetbrains-space.js"; const services = { appveyor, @@ -61,6 +62,7 @@ const services = { vercel, wercker, woodpecker, + jetbrainsSpace, }; export default ({ env = process.env, cwd = process.cwd() } = {}) => { diff --git a/test/index.test.js b/test/index.test.js index ef66c5b..1259a9a 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -216,6 +216,15 @@ test("Woodpecker CI", (t) => { t.is(service, "woodpecker"); }); +test("Jetbrains Space", (t) => { + const { isCi, service } = envCi({ + env: { JB_SPACE_EXECUTION_NUMBER: "123" }, + }); + + t.is(isCi, true); + t.is(service, "jetbrainsSpace"); +}); + test("Unknown CI and Git repository", async (t) => { const { cwd } = await gitRepo(); await gitCommit("Test commit message", { cwd });