-
Notifications
You must be signed in to change notification settings - Fork 13
35 lines (35 loc) · 848 Bytes
/
Copy pathknip.yml
File metadata and controls
35 lines (35 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Knip
on:
push:
branches:
- the-one
paths:
- 'documentation-website/**.ts'
- 'documentation-website/**.tsx'
- 'documentation-website/**.js'
- 'documentation-website/**.json'
- '.github/workflows/knip.yml'
pull_request:
branches:
- the-one
paths:
- 'documentation-website/**.ts'
- 'documentation-website/**.tsx'
- 'documentation-website/**.js'
- 'documentation-website/**.json'
- '.github/workflows/knip.yml'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'npm'
cache-dependency-path: |
package-lock.json
- run: npm ci
- run: npm run language
- run: npm run knip