-
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.
* ci: test circle-ci config * ci: test 2 * ci: fix syntax * ci: fix gh user * ci: fix gh user 2 * ci: test gh-pages branch * ci: fix branch
- Loading branch information
1 parent
af1daa1
commit 96aaccd
Showing
2 changed files
with
58 additions
and
60 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,36 @@ | ||
version: 2.1 | ||
jobs: | ||
build_test_deploy: | ||
docker: | ||
- image: circleci/node:10 | ||
steps: | ||
- checkout | ||
- restore_cache: # special step to restore the dependency cache | ||
key: dependency-cache-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Setup Dependencies | ||
command: npm install | ||
- save_cache: # special step to save the dependency cache | ||
key: dependency-cache-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }} | ||
paths: | ||
- ./node_modules | ||
- run: # run tests | ||
name: Run Test | ||
command: npm test | ||
- run: # build amd deploy | ||
name: Run deploy | ||
command: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "dviramontes" | ||
npm run deploy | ||
workflows: | ||
version: 2 | ||
build_test_deploy: | ||
jobs: | ||
- build_test_deploy: | ||
name: deploy | ||
filters: | ||
branches: | ||
only: | ||
- master |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.