version: 2.1

orbs: 
  node: circleci/node@5.0.3

jobs:
  test:
    docker:
      - image: cimg/node:16.14
    steps:
      - checkout
      - node/install-packages:
          pkg-manager: npm
      - run:
          name: "Execute Unit Tests"
          command: "npm test"
      - run:
          name: "Lint Check"
          command: "npm run lint"

workflows:
  pr:
    jobs:
      - test

version: 2.1

orbs: 
  node: circleci/node@5.0.3

jobs:
  test:
    docker:
      - image: cimg/node:18.11
    steps:
      - checkout
      - node/install-packages:
          pkg-manager: npm
      - run:
          name: "Execute Unit Tests"
          command: "npm test"
      - run:
          name: "Lint Check"
          command: "npm run lint"

workflows:
  pr:
    jobs:
      - test

Set circleci to use node 18.11.x.
Set circleci to use node 18.11.x.
