Skip to content

Commit

Permalink
run with lighthouse ci default config
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanhafezzz committed Dec 31, 2019
1 parent 2ee85e3 commit 1c55238
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 57 deletions.
29 changes: 13 additions & 16 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 @@ -8,28 +9,24 @@ jobs:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
# 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:
paths:
- node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}
paths:
- node_modules
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.

0 comments on commit 1c55238

Please sign in to comment.