connect-ready 1.0.9 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,41 @@
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
+
4
+ name: Node.js Package
5
+
6
+ on:
7
+ release:
8
+ types: [created]
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+
14
+ strategy:
15
+ matrix:
16
+ node-version: [10.x, 12.x, 14.x, 15.x]
17
+
18
+ steps:
19
+ - uses: actions/checkout@v2
20
+ - name: Use Node.js ${{ matrix.node-version }}
21
+ uses: actions/setup-node@v1
22
+ with:
23
+ node-version: ${{ matrix.node-version }}
24
+ - run: npm ci
25
+ - run: npm run build --if-present
26
+ - run: npm test
27
+
28
+ publish-npm:
29
+ needs: build
30
+ runs-on: ubuntu-latest
31
+ steps:
32
+ - uses: actions/checkout@v2
33
+ - uses: actions/setup-node@v1
34
+ with:
35
+ node-version: 14
36
+ registry-url: https://registry.npmjs.org/
37
+ - run: npm ci
38
+ - run: npm publish
39
+ env:
40
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
41
+
package/.travis.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  language: node_js
2
2
  node_js:
3
- - '12.18.3'
4
- - '14.7.0'
3
+ - '14.16.0'
4
+ - '15.3.0'
5
5
  sudo: false
6
- script: 'npm run-script cover'
6
+ script: 'npm run-script test:cover'
7
7
  after_script: 'cat ./coverage/lcov.info | coveralls'
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
- [![Build Status](https://travis-ci.org/dcolens/connect-ready.svg?branch=master)](https://travis-ci.org/dcolens/connect-ready) [![Build Status](https://travis-ci.org/dcolens/connect-ready.svg?branch=master)](https://travis-ci.org/dcolens/connect-ready)
2
-
3
1
  # connect-ready
2
+
3
+ [![Build Status](https://travis-ci.org/dcolens/connect-ready.svg?branch=master)](https://travis-ci.org/dcolens/connect-ready) [![Coverage Status](https://coveralls.io/repos/github/dcolens/connect-ready/badge.svg?branch=master)](https://coveralls.io/github/dcolens/connect-ready?branch=master)
4
+
4
5
  express route that indicates whether a service is ready or not. Mostly created to make graceful restart of node express servers in a Kubernetes environment.
5
6
 
6
7
 
@@ -68,7 +69,7 @@ Another use of the readinessProbe can be to indicate if the server is too busy,
68
69
 
69
70
  ### Usage
70
71
 
71
- 1. npm install toobusy-js
72
+ 1. npm install toobusy-js
72
73
  2. enable toobusy in connect-ready:
73
74
  ```javascript
74
75
  ready.enableTooBusy(70)