Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit 2a32a62

Browse files
authored
add circleci configuration and update the node engines (#10)
1 parent cc04b2d commit 2a32a62

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.circleci/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2
2+
jobs:
3+
test:
4+
docker:
5+
- image: node:8
6+
working_directory: ~/node-connect-datadog
7+
resource_class: small
8+
steps:
9+
- checkout
10+
- run:
11+
name: Versions
12+
command: npm version
13+
- restore_cache:
14+
key: v1-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
15+
- run:
16+
name: Install dependencies
17+
command: npm install
18+
- save_cache:
19+
key: v1-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
20+
paths:
21+
- ./node_modules
22+
- run:
23+
name: Run tests
24+
command: npm test
25+
workflows:
26+
version: 2
27+
build:
28+
jobs:
29+
- test

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"author": "Datadog",
1818
"license": "MIT",
1919
"readmeFilename": "README.md",
20+
"engines": {
21+
"node": ">=8"
22+
},
2023
"dependencies": {
2124
"node-dogstatsd": "0.0.6"
2225
},

0 commit comments

Comments
 (0)