Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature (add workflow for unused dependencies) #245

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
25 changes: 25 additions & 0 deletions .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Dependency Check

on: [push, pull_request]
bitmaskit marked this conversation as resolved.
Show resolved Hide resolved

env:
NODE_VERSION: 18
bitmaskit marked this conversation as resolved.
Show resolved Hide resolved

jobs:
check-unused-dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
bitmaskit marked this conversation as resolved.
Show resolved Hide resolved
check-latest: true

- name: Install dependencies
run: npm install

- name: Check for unused dependencies
run: npx depcheck --ignores="@types/*,eslint*,babel*,jest*" --skip-missing true
Loading
Loading