Skip to content

Commit

Permalink
ci(vrt): Add regconfig.ci.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ruedap committed Sep 13, 2020
1 parent 7fa8335 commit 98c8644
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,9 @@ yarn-error.log*

# storybook
/build-storybook.log
.reg
storybook-static/

# VRT
.reg
regconfig.json
__screenshots__/
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down
8 changes: 4 additions & 4 deletions regconfig.json → regconfig.ci.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"core": {
"workingDir": ".reg",
"actualDir": ".storycap/__screenshots__/actual",
"actualDir": ".__screenshots__",
"thresholdRate": 0,
"ximgdiff": {
"invocationType": "client"
Expand All @@ -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"
}
}
}
}

0 comments on commit 98c8644

Please sign in to comment.