Skip to content

Commit

Permalink
Update circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangvvo committed Jul 2, 2022
1 parent 707ce0a commit 0d836a7
Showing 1 changed file with 15 additions and 23 deletions.
38 changes: 15 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
version: 2.1
orbs:
codecov: codecov/codecov@1.0.5
node: circleci/node@5.0.2
jobs:
build:
docker:
- image: circleci/node
build_and_test:
executor: node/default
steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm ci

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run: npm run lint
- run: npm run test
- run: npm run coverage

- run: npm run build && npm run test-import

- node/install-packages:
pkg-manager: npm
- run:
command: npm run test
name: Run tests
- run:
command: npm run build
name: Build app
- codecov/upload:
file: "coverage.lcov"
- persist_to_workspace:
root: ~/project
paths:
- .

0 comments on commit 0d836a7

Please sign in to comment.