mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-17 14:28:25 +00:00
* perf(docs): cache name parts when generating related icons * perf(site): reuse icon search indexes between queries --------- Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
59 lines
1.7 KiB
YAML
59 lines
1.7 KiB
YAML
name: Docs Checks
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- docs/**
|
|
- .github/workflows/docs.yml
|
|
- package.json
|
|
- pnpm-workspace.yaml
|
|
- pnpm-lock.yaml
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
# Release metadata is generated by diffing every release tag
|
|
fetch-depth: 0
|
|
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
cache: 'pnpm'
|
|
node-version-file: 'package.json'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Test search composable
|
|
run: pnpm --filter @lucide/docs exec node --test .vitepress/theme/composables/useSearch.test.mts
|
|
|
|
- name: Build docs
|
|
run: pnpm --filter @lucide/docs build
|
|
|
|
typecheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
# Release metadata is generated by diffing every release tag
|
|
fetch-depth: 0
|
|
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
cache: 'pnpm'
|
|
node-version-file: 'package.json'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Generate docs data
|
|
run: pnpm --filter @lucide/docs run "/^prebuild:.*/"
|
|
|
|
- name: Typecheck
|
|
run: pnpm --filter @lucide/docs typecheck
|