This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: CircleCI linter and unit tests
- Loading branch information
Ryan Park
committed
May 11, 2022
1 parent
54c7dce
commit 1477c35
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |