Skip to content
Open
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
30 changes: 30 additions & 0 deletions .github/workflows/snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,36 @@ jobs:
- name: Validate Stellar testnet snippets
run: pnpm run check:stellar-testnet

broken-links:
name: Broken-link check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm

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

# Internal-only check runs on every PR (fast, no network).
# External check runs additionally on pushes to develop / main.
- name: Check internal links (routes, anchors, assets)
run: pnpm run check:broken-links:internal

- name: Check external links
if: github.event_name == 'push'
run: pnpm run check:broken-links

playground-smoke:
name: Playground smoke test
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"test:playground": "playwright test --config scripts/playground/tests/playwright.config.ts",
"mint:validate": "mint validate",
"mint:broken-links": "mint broken-links",
"check:broken-links": "node scripts/check-broken-links.mjs",
"check:broken-links:internal": "node scripts/check-broken-links.mjs --no-external",
"test": "npm run check:snippets && npm run check:nav-coverage && npm run check:contract-registry && npm run check:compatibility-matrix && npm run test:redirects-and-anchors"
},
"dependencies": {
Expand Down
Loading
Loading