Skip to content

Commit 58387eb

Browse files
webdevbyjossclaude
andcommitted
CI: enforce awesome-lint on README
CONTRIBUTING asks contributors to run `npx awesome-lint`, but CI only ran the link check, so lint errors could land undetected. Add a Lint workflow that runs it on README/workflow changes. Reuses the pinned checkout SHA from link-check.yml; relies on the runner's preinstalled Node (no setup-node action). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a0b0c6a commit 58387eb

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/awesome-lint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "README.md"
7+
- ".github/workflows/awesome-lint.yml"
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- "README.md"
13+
- ".github/workflows/awesome-lint.yml"
14+
workflow_dispatch:
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
lint:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Check out repository
24+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
25+
26+
- name: Run awesome-lint
27+
run: npx --yes awesome-lint

0 commit comments

Comments
 (0)