Skip to content

Commit

Permalink
build: add lint workflow
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Lim <[email protected]>
  • Loading branch information
matthiasferraina and er-lim committed Apr 9, 2024
1 parent e833bb3 commit 62669ed
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,32 @@ jobs:
paths:
- .


lint:
executor:
name: node-docker
working_directory: ~/pix-site
steps:
- attach_workspace:
at: ~/pix-site
- run: cat package*.json > cachekey
- restore_cache:
keys:
- v1-pix-site-lint-npm-{{ checksum "cachekey" }}
- run:
name: Install dependencies
command: |
npm ci
- save_cache:
key: v1-pix-site-lint-npm-{{ checksum "cachekey" }}
paths:
- ~/.npm
- run:
name: Lint
command: |
npm lint

test-shared:
executor:
name: node-docker
Expand Down Expand Up @@ -123,6 +149,11 @@ workflows:
- checkout:
context: pix-site

- lint:
context: pix-site
requires:
- checkout

- test-shared:
context: pix-site
requires:
Expand Down

0 comments on commit 62669ed

Please sign in to comment.