From ea43d60714fa2d78c7e43519285f999126421d43 Mon Sep 17 00:00:00 2001 From: Manas Srivastava Date: Thu, 21 May 2026 23:47:15 +0530 Subject: [PATCH] ci: install typos + lychee (Tier-2 quality) typos (crate-ci): fast Rust-based spell-checker for source + docs lychee: broken-link checker for markdown + HTML 100% free for public repos. Both run in <1min. lychee starts with fail=false (warn-only) so first runs don't block merges if the existing markdown has broken links. Flip to fail=true after baseline is clean. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/lychee.yml | 24 ++++++++++++++++++++++++ .github/workflows/typos.yml | 18 ++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/lychee.yml create mode 100644 .github/workflows/typos.yml diff --git a/.github/workflows/lychee.yml b/.github/workflows/lychee.yml new file mode 100644 index 0000000..5e46750 --- /dev/null +++ b/.github/workflows/lychee.yml @@ -0,0 +1,24 @@ +name: lychee (broken links) + +on: + push: + branches: [master, main] + pull_request: + branches: [master, main] + schedule: + - cron: '29 6 * * 1' + +permissions: + contents: read + issues: write + +jobs: + links: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + - uses: lycheeverse/lychee-action@v2 + with: + args: --no-progress --max-concurrency 4 --exclude-mail './**/*.md' './**/*.html' + fail: false # warn-only on first install; flip to true once baseline is clean diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 0000000..1e3a4dd --- /dev/null +++ b/.github/workflows/typos.yml @@ -0,0 +1,18 @@ +name: typos + +on: + push: + branches: [master, main] + pull_request: + branches: [master, main] + +permissions: + contents: read + +jobs: + typos: + runs-on: ubuntu-latest + timeout-minutes: 3 + steps: + - uses: actions/checkout@v4 + - uses: crate-ci/typos@v1.30.0