-
Notifications
You must be signed in to change notification settings - Fork 374
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 #389 from dopry/circleci_basic
chore: add circleci and commitlint validation
- Loading branch information
Showing
5 changed files
with
1,310 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,51 @@ | ||
# Javascript Node CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-javascript/ for more details | ||
# | ||
version: 2 | ||
|
||
aliases: | ||
x-ignore-master: &x-ignore-master | ||
filters: | ||
branches: | ||
ignore: master | ||
|
||
x-only-master: &x-only-master | ||
filters: | ||
branches: | ||
only: master | ||
|
||
|
||
jobs: | ||
lint: | ||
docker: | ||
- image: circleci/node:8.9 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- npm-{{ checksum "package-lock.json" }}-{{ arch }} | ||
- npm- | ||
- run: npm install | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: npm-{{ checksum "package-lock.json" }}-{{ arch }} | ||
- run: | ||
command: | | ||
LAST_TAG=`git describe --tags --abbrev=0` | ||
echo commitlint --from ${LAST_TAG} | ||
npx commitlint --from ${LAST_TAG} | ||
workflows: | ||
version: 2 | ||
pullrequest: | ||
jobs: | ||
- lint: | ||
<<: *x-ignore-master | ||
|
||
master: | ||
jobs: | ||
- lint: | ||
<<: *x-only-master |
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 |
---|---|---|
|
@@ -14,4 +14,5 @@ Thumbs.db | |
|
||
.idea/ | ||
|
||
nbproject/ | ||
nbproject/ | ||
node_modules/ |
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
Oops, something went wrong.