Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit b04f790

Browse files
committed
🔧 config(circleci): add circile ci config
1 parent f528a3f commit b04f790

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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:10.15.0
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+
keys:
25+
- v1-dependencies-{{ checksum "package.json" }}
26+
# fallback to using the latest cache if no exact match is found
27+
- v1-dependencies-
28+
29+
- run: yarn install
30+
31+
- save_cache:
32+
paths:
33+
- node_modules
34+
key: v1-dependencies-{{ checksum "package.json" }}
35+
36+
# run tests!
37+
- run: yarn lint:ci
38+
- run: yarn test

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"changelog": "conventional-changelog -i CHANGELOG.md -s -n ./node_modules/git-commit-message-convention/convention.js",
5151
"clean": "rimraf coverage tests/e2e/projects/*",
5252
"lint": "eslint --fix --ext .js .",
53+
"lint:ci": "eslint --ext .js .",
5354
"release": "conventional-github-releaser -n ./node_modules/git-commit-message-convention/convention.js",
5455
"test": "npm run test:unit",
5556
"test:unit": "jest ./tests/unit/*.spec.js",

0 commit comments

Comments
 (0)