chore: update readme with current Node LTS versions and add Node 16 to the testing matrix(#465)
* chore: update readme with current Node LTS versions * squash: add node 16 to action matrix Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
This commit is contained in:
parent
349b84c3da
commit
8abbc114af
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x, 14.x]
|
node-version: [12.x, 14.x, 16.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
@ -37,7 +37,7 @@ jobs:
|
||||||
- name: Generate coverage report
|
- name: Generate coverage report
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 14.x
|
node-version: 16.x
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build --if-present
|
- run: npm run build --if-present
|
||||||
- run: npm run coverage
|
- run: npm run coverage
|
||||||
|
|
@ -60,7 +60,7 @@ jobs:
|
||||||
- name: Upload coverage report to codacy
|
- name: Upload coverage report to codacy
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 14.x
|
node-version: 16.x
|
||||||
- run: |
|
- run: |
|
||||||
( [[ "${CODACY_PROJECT_TOKEN}" != "" ]] && npm run coverage-publish ) || echo "Coverage report not published"
|
( [[ "${CODACY_PROJECT_TOKEN}" != "" ]] && npm run coverage-publish ) || echo "Coverage report not published"
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ _Note:_ Supports CloudEvent versions 0.3, 1.0
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
The CloudEvents SDK requires a current LTS version of Node.js. At the moment
|
The CloudEvents SDK requires a current LTS version of Node.js. At the moment
|
||||||
those are Node.js 10.x and Node.js 12.x. To install in your Node.js project:
|
those are Node.js 12.x, Node.js 14.x and Node.js 16.x. To install in your Node.js project:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
npm install cloudevents
|
npm install cloudevents
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue