Skip to content

Commit

Permalink
Add a shellcheck job to CircleCI (PR #2996)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienw committed Oct 27, 2020
1 parent 1b1fef2 commit 510a546
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .circleci/config.yml
Expand Up @@ -4,6 +4,12 @@ executors:
node:
docker:
- image: cimg/node:12.18
base:
docker:
- image: cimg/base:stable

orbs:
shellcheck: circleci/shellcheck@2.0.0

commands:
checkout-and-dependencies:
Expand Down Expand Up @@ -68,6 +74,17 @@ jobs:
- checkout-and-dependencies
- run: yarn test-lockfile

# This is implemented as a separate job instead of using the orb's predefined
# job so that we can have a more descriptive name when reported to github.
# See also https://github.com/CircleCI-Public/shellcheck-orb/issues/29
shellcheck:
executor: base
steps:
- checkout
- shellcheck/install
- shellcheck/check:
dir: ./bin

workflows:
version: 2
main:
Expand All @@ -79,3 +96,4 @@ workflows:
- licence-check
- alex
- yarn_lock
- shellcheck

0 comments on commit 510a546

Please sign in to comment.