Skip to content

Implement depcheck as a Github Action #6

Implement depcheck as a Github Action

Implement depcheck as a Github Action #6

Workflow file for this run

name: Depcheck
on:
push:
branches:
- nextjs
pull_request:
branches:
- nextjs
jobs:
check_dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install depcheck
# Documentation: [Link to depcheck documentation](https://www.npmjs.com/package/depcheck)
run: npm install -g depcheck
- name: Run depcheck
run: depcheck ./frontend --fail-on-error