Skip to content

Commit 7f9f803

Browse files
committed
Add circleci.yml
1 parent ec5ca4a commit 7f9f803

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.circleci/config.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/mern-starter
5+
# The primary container is an instance of the first list image listed. Your build commands run in this container.
6+
docker:
7+
- image: circleci/node:4.8.2
8+
steps:
9+
- checkout
10+
- run:
11+
name: update-yarn
12+
command: 'sudo npm install -g yarn@latest'
13+
- restore_cache:
14+
key: dependency-cache-{{ checksum "package.json" }}
15+
- run:
16+
name: install-npm-wee
17+
command: yarn install
18+
- save_cache:
19+
key: dependency-cache-{{ checksum "package.json" }}
20+
paths:
21+
- .node_modules
22+
- run:
23+
name: test
24+
command: yarn test
25+
# - run:
26+
# name: code-coverage
27+
# command: './node_modules/.bin/nyc report --reporter=text-lcov'
28+
# - store_artifacts:
29+
# path: test-results.xml
30+
# prefix: tests
31+
# - store_artifacts:
32+
# path: coverage
33+
# prefix: coverage
34+
# - store_test_results:
35+
# path: test-results.xml

0 commit comments

Comments
 (0)