Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

[WIP] lighthouse ci integration #139

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ jobs:
- <<: *restore
- <<: *restore_lock
- run: npm run build-storybook
lighthouse:
<<: *build_image
steps:
- <<: *restore
- run: npm run lighthouse

workflows:
version: 2
Expand Down Expand Up @@ -144,3 +149,6 @@ workflows:
- build-asset
- build-storybook
- test
- lighthouse:
requires:
- install
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"start:offload": "cross-env ENABLE_OFFLOAD=1 npm run start:dev",
"start:prod": "cross-env NODE_ENV=production run-p start:{prod:server,dev:agreed}",
"start:prod:server": "node bin/start-server.js",
"lighthouse": "run-p -r start:dev lighthouse:wait-on",
"lighthouse:wait-on": "wait-on tcp:3000 && TRAVIS_PULL_REQUEST_SLUG=recruit-tech/redux-pluto TRAVIS_EVENT_TYPE=pull_request lighthouse-ci http://localhost:3000",
"storybook": "start-storybook -p 6006",
"test": "run-p test:agreed test:wait-on -r",
"test:agreed": "agreed-server --path ./spec/agreed/agreed.js --port 3020",
Expand Down Expand Up @@ -142,6 +144,7 @@
"flow-bin": "^0.78.0",
"form-data": "^2.3.1",
"jest": "^23.4.1",
"lighthouse-ci": "git+https://github.com/ebidel/lighthouse-ci.git",
"mkdirp": "^0.5.1",
"npm-run-all": "^4.0.2",
"power-assert": "^1.6.0",
Expand Down