-
Notifications
You must be signed in to change notification settings - Fork 9
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
1 parent
5b06603
commit f3595ae
Showing
1 changed file
with
52 additions
and
0 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,52 @@ | ||
# Javascript Node CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-javascript/ for more details | ||
# | ||
version: 2 | ||
jobs: | ||
test: | ||
docker: | ||
# use node:lts | ||
- image: circleci/node:lts | ||
environment: | ||
TZ: "Europe/London" | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- run: | ||
name: install | ||
command: npm install | ||
- run: | ||
name: test | ||
command: npm test | ||
- run: | ||
name: codecov | ||
command: npm run coverage | ||
release: | ||
docker: | ||
# use node:lts | ||
- image: circleci/node:lts | ||
environment: | ||
TZ: "Europe/London" | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- run: | ||
name: install | ||
command: npm install | ||
- run: | ||
name: release | ||
command: npx semantic-release | ||
|
||
|
||
workflows: | ||
version: 2 | ||
test_and_release: | ||
jobs: | ||
- test | ||
- release: | ||
requires: | ||
- test | ||
filters: | ||
branches: | ||
only: master |