Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Check Links

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
check-links:
name: Check Internal Links
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build static site
run: pnpm build
env:
NODE_OPTIONS: --max-old-space-size=8192

- name: Check for broken links
run: pnpm check-links
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"lint:fix": "eslint --fix .",
"format": "prettier --write .",
"check-format": "prettier --check .",
"check-links": "tsx scripts/check-broken-links.ts",
"quiz:validate": "tsx scripts/quiz-dev.ts validate",
"quiz:create": "tsx scripts/quiz-dev.ts create",
"quiz:list": "tsx scripts/quiz-dev.ts list",
Expand Down Expand Up @@ -123,6 +124,7 @@
"@tailwindcss/postcss": "^4.1.18",
"@tailwindcss/typography": "0.5.19",
"@types/js-yaml": "^4.0.9",
"@types/jsdom": "^28.0.0",
"@types/node": "^25.2.3",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
Expand All @@ -134,6 +136,7 @@
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"fast-glob": "^3.3.3",
"jsdom": "^28.1.0",
"postcss": "^8.5.6",
"prettier": "^3.8.1",
"sharp": "^0.34.5",
Expand Down
Loading
Loading