Skip to content

Commit 5c7b92e

Browse files
authored
Limit service usage (#222)
1 parent 376bfe2 commit 5c7b92e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

allurerc.mjs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { env } from "node:process";
33

44
const { ALLURE_SERVICE_URL, ALLURE_SERVICE_ACCESS_TOKEN } = env;
55

6-
export default defineConfig({
6+
const config = {
77
name: "Allure Report 3",
88
output: "./out/allure-report",
99
plugins: {
@@ -34,10 +34,15 @@ export default defineConfig({
3434
matcher: ({ labels }) => labels.find(({ name, value }) => name === "env" && value === "webkit"),
3535
},
3636
},
37-
allureService: {
37+
};
38+
39+
if (ALLURE_SERVICE_URL && ALLURE_SERVICE_ACCESS_TOKEN) {
40+
config.allureService = {
3841
url: ALLURE_SERVICE_URL,
3942
project: "allure3",
4043
accessToken: ALLURE_SERVICE_ACCESS_TOKEN,
4144
publish: true,
42-
},
43-
});
45+
};
46+
}
47+
48+
export default defineConfig(config);

0 commit comments

Comments
 (0)