Skip to content

Commit

Permalink
fix: add jetbrains space to services (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
123FLO321 authored Jun 23, 2023
1 parent 2b2e34c commit a2893ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -61,6 +62,7 @@ const services = {
vercel,
wercker,
woodpecker,
jetbrainsSpace,
};

export default ({ env = process.env, cwd = process.cwd() } = {}) => {
Expand Down
9 changes: 9 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit a2893ff

Please sign in to comment.