aboutsummaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-06-06 23:53:02 +0300
committerGitHub <noreply@github.com>2020-06-06 23:53:02 +0300
commit9f60b1a5845a3e9efc7254e7f7929195524ee674 (patch)
treefb44b425e5a68580ffd7ccc09f0d74849c802b51 /.circleci
parente87a7d3fe56da1df637b201bea0eed97a9233d4f (diff)
parentac2f9df6ece3d233842c389d0b94a7676db03677 (diff)
downloadwhich-ui-9f60b1a5845a3e9efc7254e7f7929195524ee674.tar.gz
Merge pull request #9 from ilyayudovin/circle
Setup continuous integration
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..a6876ba
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,38 @@
+version: 2
+
+defaults: &defaults
+ working_directory: ~/repo
+ docker:
+ - image: circleci/node:12-stretch
+
+jobs:
+ checkout_and_test:
+ <<: *defaults
+ 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:
+ name: Install NPM dependencies
+ command: npm install
+
+ - save_cache:
+ paths:
+ - node_modules
+ key: v1-dependencies-{{ checksum "package.json" }}
+
+ - run:
+ name: Test syntax and perform type checking
+ command: npm test
+
+workflows:
+ version: 2
+
+ test:
+ jobs:
+ - checkout_and_test
+