-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
7,475 additions
and
7,400 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 |
---|---|---|
@@ -1,47 +1,27 @@ | ||
# Javascript Node CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-javascript/ for more details | ||
# | ||
version: 2 | ||
version: 2.1 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:latest | ||
orbs: | ||
node: circleci/node@4.7.0 | ||
codecov: codecov/codecov@3.2.0 | ||
|
||
jobs: | ||
test: | ||
executor: | ||
name: node/default | ||
tag: 'current' | ||
steps: | ||
- checkout | ||
|
||
- restore_cache: | ||
keys: | ||
- dependencies-{{ checksum "package.json" }} | ||
|
||
- run: | ||
name: Install global packages | ||
command: sudo npm install -g codecov | ||
|
||
- run: | ||
name: Install dependencies | ||
command: npm install | ||
|
||
- save_cache: | ||
key: dependencies-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules | ||
|
||
- node/install-packages | ||
- run: | ||
name: Javascript Linter | ||
command: npm run lint | ||
|
||
- run: | ||
name: All Unit Tests with Code Coverage | ||
name: Unit tests with code coverage | ||
command: npm run test:unit:cov | ||
|
||
# Far too flakey to run on CI | ||
# - run: | ||
# name: Mutation Tests | ||
# command: npm run test:mutants | ||
|
||
- run: | ||
name: Send reports to codecov.io | ||
command: codecov | ||
workflows: | ||
node-tests: | ||
jobs: | ||
- test: | ||
post-steps: | ||
- codecov/upload |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
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 @@ | ||
npx --no-install lint-staged |
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
Oops, something went wrong.