From 98c8644c0beb3ef244aa5c3b978b5a26dca4b036 Mon Sep 17 00:00:00 2001 From: ruedap Date: Sun, 13 Sep 2020 23:49:00 +0900 Subject: [PATCH] ci(vrt): Add regconfig.ci.json --- .gitignore | 6 +++++- package.json | 5 +++-- regconfig.json => regconfig.ci.json | 8 ++++---- 3 files changed, 12 insertions(+), 7 deletions(-) rename regconfig.json => regconfig.ci.json (60%) diff --git a/.gitignore b/.gitignore index ef0b6a79..020abee7 100644 --- a/.gitignore +++ b/.gitignore @@ -37,5 +37,9 @@ yarn-error.log* # storybook /build-storybook.log -.reg storybook-static/ + +# VRT +.reg +regconfig.json +__screenshots__/ diff --git a/package.json b/package.json index 63fc4df0..cec81bed 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,9 @@ "analyze": "ANALYZE=true npm run build", "storybook": "start-storybook -s ./public -p 6006", "build-storybook": "build-storybook -s ./public", - "ci:storycap": "storycap --serverTimeout 60000 --captureTimeout 10000 --serverCmd 'npx http-server storybook-static --ci -p 6007' http://localhost:6007", - "ci:vrt": "reg-suit run", + "vrt:cap": "storycap --serverTimeout 60000 --captureTimeout 10000 --serverCmd 'http-server storybook-static --ci -p 6007' http://localhost:6007", + "vrt:run": "reg-suit run", + "vrt": "npm run build-storybook && npm run vrt:cap && npm run vrt:run", "lighthouse-mkdir": "make-dir ./.lighthouse/reports/", "lighthouse-cmd": "npm run lighthouse-mkdir && lighthouse --chrome-flags='--headless' --output 'html,json,csv'", "lighthouse-index": "npm run lighthouse-cmd -- --output-path ./.lighthouse/reports/index 'https://blog.ruedap.com'", diff --git a/regconfig.json b/regconfig.ci.json similarity index 60% rename from regconfig.json rename to regconfig.ci.json index aa5bf48c..cdf98331 100644 --- a/regconfig.json +++ b/regconfig.ci.json @@ -1,7 +1,7 @@ { "core": { "workingDir": ".reg", - "actualDir": ".storycap/__screenshots__/actual", + "actualDir": ".__screenshots__", "thresholdRate": 0, "ximgdiff": { "invocationType": "client" @@ -10,10 +10,10 @@ "plugins": { "reg-keygen-git-hash-plugin": {}, "reg-notify-github-plugin": { - "clientId": "$REG_NOTICE_CLIENT_ID" + "clientId": "$VRT_NOTIFY_GITHUB_CLIENT_ID" }, "reg-publish-s3-plugin": { - "bucketName": "reg-publish-bucket-7f97ca8e-1d14-4ad7-9c51-1d5423ca5619" + "bucketName": "$VRT_PUBLISH_S3_BUCKET_NAME" } } -} \ No newline at end of file +}