Skip to content

Commit b9a639d

Browse files
authored
Merge pull request #14 from rossiam/PI-359
[PI-359] Set up CI.
2 parents 49a9a52 + afddf9a commit b9a639d

File tree

5 files changed

+1394
-197
lines changed

5 files changed

+1394
-197
lines changed

.circleci/config.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: 2.1
2+
3+
orbs:
4+
codecov: codecov/codecov@1.0.4
5+
6+
jobs:
7+
build:
8+
docker:
9+
- image: circleci/node:10.15.1
10+
11+
working_directory: ~/repo
12+
13+
steps:
14+
- checkout
15+
16+
# Download and cache dependencies
17+
- restore_cache:
18+
keys:
19+
- v1-dependencies-{{ checksum "package.json" }}
20+
# fallback to using the latest cache if no exact match is found
21+
- v1-dependencies-
22+
23+
- run: npm install
24+
25+
- save_cache:
26+
paths:
27+
- node_modules
28+
key: v1-dependencies-{{ checksum "package.json" }}
29+
30+
- run: npm test
31+
32+
- codecov/upload:
33+
file: .nyc_output/*.json

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,5 @@ typings/
6161
# next.js build output
6262
.next
6363

64-
.DS_Store
64+
.DS_Store
65+
.*.swp

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# SmartThings SmartApp NodeJS SDK (preview)
22

33
<p align="center">
4-
<a href="https://www.npmjs.com/package/@smartthings/smartapp"><img src="https://badgen.net/npm/v/@smartthings/smartapp" /></a>
5-
<a href="https://www.npmjs.com/package/@smartthings/smartapp"><img src="https://badgen.net/npm/license/@smartthings/smartapp" /></a>
6-
<a href="https://status.badgen.net/"><img src="https://badgen.net/xo/status/@smartthings/smartapp" /></a>
4+
<a href="https://www.npmjs.com/package/@smartthings/smartapp"><img src="https://badgen.net/npm/v/@smartthings/smartapp/></a>
5+
<a href="https://www.npmjs.com/package/@smartthings/smartapp"><img src="https://badgen.net/npm/license/@smartthings/smartapp/></a>
6+
<a href="https://status.badgen.net/"><img src="https://badgen.net/xo/status/@smartthings/smartapp/></a>
77
<a href="https://lgtm.com/projects/g/SmartThingsCommunity/smartapp-sdk-nodejs/context:javascript"><img alt="Language grade: JavaScript" src="https://img.shields.io/lgtm/grade/javascript/g/SmartThingsCommunity/smartapp-sdk-nodejs.svg?logo=lgtm&logoWidth=18"/></a>
88
<a href="https://lgtm.com/projects/g/SmartThingsCommunity/smartapp-sdk-nodejs/alerts/"><img alt="Total alerts" src="https://img.shields.io/lgtm/alerts/g/SmartThingsCommunity/smartapp-sdk-nodejs.svg?logo=lgtm&logoWidth=18"/></a>
99
<a href="https://snyk.io/test/github/SmartThingsCommunity/smartapp-sdk-nodejs?targetFile=package.json"><img src="https://snyk.io/test/github/SmartThingsCommunity/smartapp-sdk-nodejs/badge.svg?targetFile=package.json" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/github/SmartThingsCommunity/smartapp-sdk-nodejs?targetFile=package.json" style="max-width:100%;"></a>
10-
<a href="https://smartthingsdev.slack.com/messages/CG595N08N"><img src="https://badgen.net/badge//smartthingsdev?icon=slack" /></a>
10+
<a href="https://smartthingsdev.slack.com/messages/CG595N08N"><img src="https://badgen.net/badge//smartthingsdev?icon=slack/></a>
1111
</p>
1212

1313
[Reference Documentation](doc/index.md)
@@ -160,4 +160,4 @@ can read and share information.
160160

161161
Licensed under the [Apache License, Version 2.0](LICENSE)
162162

163-
Copyright 2019 SmartThings, Inc.
163+
Copyright 2019 SmartThings, Inc.

0 commit comments

Comments
 (0)