-
-
Notifications
You must be signed in to change notification settings - Fork 85
39 lines (32 loc) · 735 Bytes
/
lint.yml
File metadata and controls
39 lines (32 loc) · 735 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
36
37
38
39
name: lint
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
fetch-depth: 1
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
with:
node-version: 24
- name: npm ci
run: |
npm ci --ignore-scripts
- name: lint
run: npm run lint
- name: docs
run: npm run docs
- name: knip
run: npm run knip
- name: repo is clean after "build", "lint" and "docs" steps
run: |
git diff --name-only --exit-code