Skip to content

Commit 8bac331

Browse files
committed
chore: replace unimported with knip and update workflow
- Added knip as the recommended replacement. - Integrated knip into the workflow file for automated checks. Closes sinonjs#2637
1 parent 598dddb commit 8bac331

File tree

3 files changed

+365
-19
lines changed

3 files changed

+365
-19
lines changed

.github/workflows/main.yml

+16
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ jobs:
4646
- name: ESLint
4747
run: |
4848
npm run lint
49+
unused:
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v4
53+
- uses: actions/setup-node@v4
54+
with:
55+
node-version: "lts/*"
56+
cache: "npm"
57+
- name: Install dependencies
58+
run: |
59+
npm ci
60+
env:
61+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
62+
- name: Find unused files
63+
run: |
64+
npm run knip
4965
5066
browser-test:
5167
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)