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

Implement depcheck as a Github Action #896

Closed
wants to merge 9 commits into from
30 changes: 30 additions & 0 deletions .github/workflows/depcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Depcheck

on:
push:
branches:
- nextjs
pull_request:
branches:
- nextjs

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

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18
karkir0003 marked this conversation as resolved.
Show resolved Hide resolved

- name: Install yarn
run: npm install -g yarn

- name: Install depcheck
run: yarn global add depcheck

- name: Run depcheck
run: depcheck ./frontend --fail-on-error
Loading