Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run with lighthouse ci default config #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
15 changes: 6 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# circle ci config.yml
version: 2
jobs:
build:
Expand All @@ -13,15 +14,11 @@ jobs:
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run:
name: 'Setup custom environment variables'
command: |
echo '
export REACT_NODE_ENV="production"
' >> $BASH_ENV
# install lhci command line interface
- run: sudo npm install -g @lhci/cli@0.3.x
- run: sudo npm install -g serve
# install dependencies
- run: npm install
# build project
- run: npm run build

- save_cache:
Expand All @@ -30,6 +27,6 @@ jobs:
key: v1-dependencies-{{ checksum "yarn.lock" }}

# run tests!
- run: npm run bundlesize
- run: lhci autorun || echo "LHCI failed 😞!"
- run: yarn test
# run lighthouse with default config
- run: lhci autorun || echo "LHCI failed 😞!"
41 changes: 0 additions & 41 deletions lighthouserc.json

This file was deleted.