Skip to content

Commit 9b211d4

Browse files
committed
Check for dead code in CI
1 parent 589f11d commit 9b211d4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/lint-js-and-ruby.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@ jobs:
4747
yarn install --no-progress --no-emoji
4848
- name: Install Ruby Gems for package
4949
run: bundle check --path=vendor/bundle || bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
50-
- name: Linting of Ruby
50+
- name: Lint Ruby
5151
run: bundle exec rubocop
52-
- name: Linting of JS
52+
- name: Detect dead code
53+
run: |
54+
yarn run knip
55+
yarn run knip --production
56+
- name: Lint JS
5357
run: yarn start lint
5458
- name: Check formatting
5559
run: yarn start format.listDifferent

0 commit comments

Comments
 (0)