-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add circleci * chore: add circle-ci * also use npm ci for testing installs, which requires the package-lock and package.json to be in sync
- Loading branch information
1 parent
1992c71
commit afa3557
Showing
2 changed files
with
50 additions
and
1 deletion.
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,49 @@ | ||
# Javascript Node CircleCI 2.1 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-javascript/ for more details | ||
# | ||
version: 2.1 | ||
|
||
commands: | ||
test-nodejs: | ||
steps: | ||
- run: | ||
name: 'Output Node Version' | ||
command: 'node -v' | ||
|
||
- checkout | ||
|
||
# install with npm ci to make sure package.json and lock are N'Sync | ||
# No need to cache node_modules since npm ci will delete it | ||
- run: npm ci | ||
|
||
# run tests! | ||
- run: npm run ci | ||
|
||
jobs: | ||
node10: | ||
docker: | ||
- image: circleci/node:10 | ||
steps: | ||
- test-nodejs | ||
|
||
node12: | ||
docker: | ||
- image: circleci/node:12 | ||
steps: | ||
- test-nodejs | ||
|
||
workflows: | ||
version: 2 | ||
test_node_versions: | ||
jobs: | ||
- node10: | ||
filters: | ||
branches: | ||
ignore: | ||
- gh-pages | ||
- node12: | ||
filters: | ||
branches: | ||
ignore: | ||
- gh-pages |
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