2019-05-14 02:56:47 +00:00
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
commands:
|
|
|
|
test-nodejs:
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: Versions
|
|
|
|
command: npm version
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: Install dependencies
|
2021-06-23 09:39:40 +00:00
|
|
|
command: npm install
|
2019-05-14 02:56:47 +00:00
|
|
|
- run:
|
|
|
|
name: Test
|
|
|
|
command: npm test
|
|
|
|
jobs:
|
2021-06-22 19:25:00 +00:00
|
|
|
node-v14:
|
2019-05-14 02:56:47 +00:00
|
|
|
docker:
|
2021-06-23 09:41:27 +00:00
|
|
|
- image: node:14-alpine
|
|
|
|
steps:
|
|
|
|
- test-nodejs
|
|
|
|
node-v16:
|
|
|
|
docker:
|
|
|
|
- image: node:16-alpine
|
2019-05-14 02:56:47 +00:00
|
|
|
steps:
|
|
|
|
- test-nodejs
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
node-multi-build:
|
|
|
|
jobs:
|
2021-06-22 19:25:00 +00:00
|
|
|
- node-v14
|
2021-06-23 09:41:27 +00:00
|
|
|
- node-v16
|