We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 376bfe2 commit 5c7b92eCopy full SHA for 5c7b92e
allurerc.mjs
@@ -3,7 +3,7 @@ import { env } from "node:process";
3
4
const { ALLURE_SERVICE_URL, ALLURE_SERVICE_ACCESS_TOKEN } = env;
5
6
-export default defineConfig({
+const config = {
7
name: "Allure Report 3",
8
output: "./out/allure-report",
9
plugins: {
@@ -34,10 +34,15 @@ export default defineConfig({
34
matcher: ({ labels }) => labels.find(({ name, value }) => name === "env" && value === "webkit"),
35
},
36
37
- allureService: {
+};
38
+
39
+if (ALLURE_SERVICE_URL && ALLURE_SERVICE_ACCESS_TOKEN) {
40
+ config.allureService = {
41
url: ALLURE_SERVICE_URL,
42
project: "allure3",
43
accessToken: ALLURE_SERVICE_ACCESS_TOKEN,
44
publish: true,
- },
-});
45
+ };
46
+}
47
48
+export default defineConfig(config);
0 commit comments