-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from phenyl-js/feat/addCircleci
Add CircleCi
- Loading branch information
Showing
3 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
version: 2.1 | ||
|
||
executors: | ||
default: | ||
working_directory: ~/repo | ||
docker: | ||
- image: circleci/node:8.11.3 | ||
commands: | ||
prepare: | ||
steps: | ||
- checkout | ||
- run: ls package.json | xargs -n1 md5sum > deps.txt | ||
- run: | ||
# https://yarnpkg.com/ja/docs/install#linux-tab | ||
name: Install [email protected] | ||
command: | | ||
sudo unlink $(which yarn) | ||
sudo npm i -g [email protected] | ||
- run: | ||
name: Display version of Node.js, npm, Yarn | ||
command: | | ||
node -v | ||
npm -v | ||
yarn --version | ||
jobs: | ||
test: | ||
executor: | ||
name: default | ||
steps: | ||
- prepare | ||
- restore_cache: | ||
keys: | ||
- v{{ .Environment.CIRCLECI_CACHE_VERSION }}-dependencies-{{ .Branch }}-{{ checksum "deps.txt" }} | ||
- run: yarn | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v{{ .Environment.CIRCLECI_CACHE_VERSION }}-dependencies-{{ .Branch }}-{{ checksum "deps.txt" }} | ||
- run: yarn ci-test | ||
- run: yarn type-check | ||
- run: yarn build | ||
workflows: | ||
version: 2.1 | ||
test_deploy: | ||
jobs: | ||
- test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters