Skip to content

Commit

Permalink
feat: updated circleci config with nodejs v16
Browse files Browse the repository at this point in the history
  • Loading branch information
addwot committed Jul 20, 2022
1 parent d276eea commit c904f79
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
version: 2
version: 2.1

orbs:
node: circleci/node@5.0.2

parameters:
node_version:
type: string
default: '16.15.1'

commands:
install_deps:
steps:
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
- node/install-packages:
pkg-manager: yarn
cache-version: v1-all
cache-only-lockfile: true
app-dir: ~/repo
override-ci-command: yarn install --pure-lockfile --no-progress

jobs:
build:
docker:
- image: circleci/node:14

executor:
name: node/default
tag: << pipeline.parameters.node_version >>
working_directory: ~/repo

steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v2-dependencies-

- run: yarn

- save_cache:
paths:
- node_modules
- yarn.lock
- ./node_modules/.cache/mongodb-memory-server/mongodb-binaries
key: v2-dependencies-{{ checksum "package.json" }}

- install_deps
- run: yarn test
- run: yarn test:repl

0 comments on commit c904f79

Please sign in to comment.