Skip to content

Commit 346efe0

Browse files
alvinunrealclaude
andcommitted
Add GitHub Actions workflow for awesome-lint
- Create automated awesome-lint workflow that runs on push, PRs, and daily - Add package.json with proper metadata and scripts - Include markdown-link-check configuration for handling large link volumes - Update .gitignore for Node.js project structure - Enable continuous compliance checking for awesome list standards The workflow will automatically validate: - README format compliance - Link formatting standards - List item structure - Overall awesome list requirements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a5efe6b commit 346efe0

File tree

6 files changed

+5420
-124
lines changed

6 files changed

+5420
-124
lines changed

.github/workflows/awesome-lint.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Awesome Lint
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
# Run daily at 2 AM UTC to catch any upstream changes
10+
- cron: '0 2 * * *'
11+
12+
jobs:
13+
awesome-lint:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '18'
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Run awesome-lint
30+
run: npx awesome-lint README.md
31+
32+
- name: Check for broken links (optional)
33+
run: |
34+
# Install markdown-link-check
35+
npm install -g markdown-link-check
36+
37+
# Check for broken links with custom config
38+
markdown-link-check README.md \
39+
--config .github/workflows/markdown-link-check-config.json \
40+
|| echo "⚠️ Some links may be temporarily unavailable"
41+
continue-on-error: true
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^http://localhost"
5+
}
6+
],
7+
"replacementPatterns": [],
8+
"httpHeaders": [
9+
{
10+
"urls": ["https://github.com"],
11+
"headers": {
12+
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
13+
"User-Agent": "Mozilla/5.0 (compatible; awesome-lint-bot)"
14+
}
15+
}
16+
],
17+
"timeout": "20s",
18+
"retryOn429": true,
19+
"retryCount": 3,
20+
"fallbackRetryDelay": "30s",
21+
"aliveStatusCodes": [200, 206, 999]
22+
}

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,38 @@
1+
# Dependencies
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
7+
# Runtime data
8+
pids
9+
*.pid
10+
*.seed
11+
*.pid.lock
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage/
15+
*.lcov
16+
17+
# OS generated files
118
.DS_Store
19+
.DS_Store?
20+
._*
21+
.Spotlight-V100
22+
.Trashes
23+
ehthumbs.db
24+
Thumbs.db
25+
26+
# Editor directories and files
27+
.vscode/
28+
.idea/
29+
*.swp
30+
*.swo
31+
*~
32+
33+
# Temporary files
34+
*.tmp
35+
*.temp
36+
37+
# Development files
238
dev

0 commit comments

Comments
 (0)