Skip to content

Commit

Permalink
chore: add lint step in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
blimmer committed Sep 13, 2023
1 parent 43bb977 commit a3f614e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,28 @@ jobs:
- run: yarn build
- run: yarn test

validate-code:
executor: build
steps:
- checkout
- run:
name: Login in NPM
command: 'echo "npmAuthToken: $NPM_TOKEN" >> ${HOME}/.yarnrc.yml'
- restore_cache:
name: Restore ESLint Cache
keys:
- eslint-cache-{{ .Branch }}
# If this branch doesn't have a warm cache yet, fall back to main to try to speed up the initial build
- eslint-cache-main
- run:
name: Run ESLint
command: yarn lint --cache --cache-location .eslintcache --quiet
- save_cache:
name: Save ESLint Cache
key: eslint-cache-{{ .Branch }}
paths:
- .eslintcache

publish:
resource_class: "xlarge"
docker:
Expand Down

0 comments on commit a3f614e

Please sign in to comment.