Skip to content

Commit 777a44c

Browse files
committed
🔧 config: upgrade circile ci
1 parent 4d1d525 commit 777a44c

File tree

3 files changed

+42
-7
lines changed

3 files changed

+42
-7
lines changed

.circleci/config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/node:11.10.1
11+
12+
# Specify service dependencies here if necessary
13+
# CircleCI maintains a library of pre-built images
14+
# documented at https://circleci.com/docs/2.0/circleci-images/
15+
# - image: circleci/mongo:3.4.4
16+
17+
working_directory: ~/repo
18+
19+
steps:
20+
- checkout
21+
22+
# Download and cache dependencies
23+
- restore_cache:
24+
name: Restore Yarn Package Cache
25+
keys:
26+
- yarn-packages-{{ checksum "yarn.lock" }}
27+
28+
- run:
29+
name: Install Dependencies
30+
command: yarn install --frozen-lockfile
31+
32+
- save_cache:
33+
name: Save Yarn Package Cache
34+
key: yarn-packages-{{ checksum "yarn.lock" }}
35+
paths:
36+
- ~/.cache/yarn
37+
38+
# run tests!
39+
- run: yarn lint
40+
- run: yarn test:unit
41+
- run: yarn ci:coverage && bash <(curl -s https://codecov.io/bash)

circle.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
"scripts": {
5454
"build": "cross-env BABEL_ENV=production babel ./src --out-dir ./lib",
5555
"changelog": "conventional-changelog -i CHANGELOG.md -s -n ./node_modules/git-commit-message-convention/convention.js",
56-
"clean": "rm -rf ./coverage && rm -rf ./lib/*.js*",
5756
"ci:coverage": "nyc report --reporter=text-lcov > coverage.lcov",
57+
"clean": "rm -rf ./coverage && rm -rf ./lib/*.js*",
5858
"coverage": "nyc report --reporter lcov && opener coverage/lcov-report/index.html",
5959
"lint": "eslint ./src ./test",
6060
"release": "conventional-github-releaser -n ./node_modules/git-commit-message-convention/convention.js",

0 commit comments

Comments
 (0)