Skip to content

Commit 01b4dd6

Browse files
authored
Merge pull request #4 from nkuba/ci-config
CI config
2 parents 38e2626 + 8e64657 commit 01b4dd6

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

.circleci/config.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
7+
jobs:
8+
build:
9+
docker:
10+
- image: circleci/node:11
11+
12+
steps:
13+
- checkout
14+
15+
# Download and cache dependencies.
16+
- restore_cache:
17+
keys:
18+
# Find a cache corresponding to this specific package-lock.json checksum
19+
# when this file is changed, this key will fail
20+
- v1-npm-deps-{{ checksum "package-lock.json" }}
21+
# Find the most recently generated cache used from any branch
22+
- v1-npm-deps-
23+
24+
- run: npm install
25+
26+
- save_cache:
27+
key: v1-npm-deps-{{ checksum "package-lock.json" }}
28+
paths:
29+
- node_modules
30+
31+
# Run linting verification.
32+
- run: npm run lint
33+
34+
# Run tests.
35+
- run: npm test

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Electrum Protocol Client for Node.js
44

5+
## Continuous Integration
6+
7+
Latest [CircleCI](.circleci/) build status:
8+
9+
[![CircleCI](https://circleci.com/gh/nkuba/electrum-client-js.svg?style=svg)](https://circleci.com/gh/nkuba/electrum-client-js)
10+
511
## what is this
612

713
https://electrum.org/
@@ -45,5 +51,3 @@ const main = async () => {
4551
}
4652
main()
4753
```
48-
49-

0 commit comments

Comments
 (0)