Skip to content

Commit

Permalink
chore(ci): add circleci orb for more node testing (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
lholmquist authored May 21, 2020
1 parent 7a6f31b commit 9763487
Showing 1 changed file with 7 additions and 42 deletions.
49 changes: 7 additions & 42 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,14 @@
# Javascript Node CircleCI 2.1 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1

commands:
test-nodejs:
steps:
- run:
name: 'Output Node Version'
command: 'node -v'

- checkout

# install with npm ci to make sure package.json and lock are N'Sync
# No need to cache node_modules since npm ci will delete it
- run: npm ci

# run tests!
- run: npm run ci

jobs:
node10:
docker:
- image: circleci/node:10
steps:
- test-nodejs

node12:
docker:
- image: circleci/node:12
steps:
- test-nodejs
orbs:
node_matrix: nodeshift/node-runtimes@0.0.1

workflows:
version: 2
test_node_versions:
jobs:
- node10:
filters:
branches:
ignore:
- gh-pages
- node12:
filters:
branches:
ignore:
- gh-pages
- node_matrix/node10
- node_matrix/node10-ubi8-redhat
- node_matrix/node12
- node_matrix/node12-ubi8-redhat
- node_matrix/node14

0 comments on commit 9763487

Please sign in to comment.