Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
chore: CircleCI linter and unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Park committed May 11, 2022
1 parent 54c7dce commit 1477c35
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: 2.1

parameters:
NODE_IMAGE:
type: string
default: '16.14.2'

jobs:
build:
docker:
- image: cimg/node:<< pipeline.parameters.NODE_IMAGE >>

working_directory: ~/repo

steps:
- checkout

- restore_cache:
keys:
- dependencies-{{ checksum "package-lock.json" }}

- run:
name: Installing dependencies
command: npm install

- save_cache:
paths:
- node_modules
key: dependencies-{{ checksum "package-lock.json" }}

- run:
name: Running linters
command: npm run lint

- run:
name: Running unit tests
command: npm test

0 comments on commit 1477c35

Please sign in to comment.