Skip to content

Commit

Permalink
ci: update ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 11, 2020
1 parent a991dad commit 741e6f8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,36 @@
version: 2

step_restore_cache: &restore_cache
restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}-1
- v1-dependencies-

step_install_deps: &install_deps
run:
name: Install Dependencies
command: yarn --frozen-lockfile

step_save_cache: &save_cache
save_cache:
paths:
- node_modules
- ~/.cache/yarn
key: v1-dependencies-{{ checksum "yarn.lock" }}-1

jobs:
test:
docker:
- image: circleci/node:12
steps:
- checkout
- *restore_cache
- *install_deps
- *save_cache
- run: yarn test

workflows:
version: 2
ci:
jobs:
- test
3 changes: 0 additions & 3 deletions circle.yml

This file was deleted.

0 comments on commit 741e6f8

Please sign in to comment.