Skip to content

Commit

Permalink
Merge pull request #6654 from guardian/ahe/knip-gha
Browse files Browse the repository at this point in the history
Create Knip action
  • Loading branch information
andrewHEguardian authored Jan 6, 2025
2 parents 0fb1f1e + 62d49d0 commit 6632ded
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/knip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: knip

on:
pull_request:

jobs:
knip:
name: detect unused exports
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache-dependency-path: support-frontend/yarn.lock

- name: Install
run: yarn
working-directory: support-frontend

- name: Knip check
run: yarn knip
working-directory: support-frontend

0 comments on commit 6632ded

Please sign in to comment.