Skip to content

feat(engine): implement graph engine #78

feat(engine): implement graph engine

feat(engine): implement graph engine #78

Workflow file for this run

# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Fern Docs CI
on:
push:
paths:
- 'docs/**'
- 'fern/**'
- '.github/workflows/fern-docs-ci.yml'
branches:
- "pull-request/[0-9]+"
workflow_dispatch:
permissions:
contents: read
jobs:
fern-check:
name: Fern Check
runs-on: linux-amd64-cpu8
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Check markdown filename conventions
run: |
BAD=$(find docs/ -name '*.md' | grep -E '[A-Z_]' || true)
if [ -n "$BAD" ]; then
echo "::error::Markdown filenames must be lowercase with hyphens only:"
echo "$BAD"
exit 1
fi
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '20'
- name: Install Fern CLI
run: npm install -g fern-api@$(jq -r .version fern/fern.config.json)
- name: Check MDX safety
# Intentionally inline — a composite action would add indirection without benefit for a single grep.
# Single-line grep is intentional — multiline <img> tags do not occur in practice in markdown docs.
run: |
BAD=$(grep -rn '<img\b[^>]*[^/]>\|<img>' docs/ fern/ --include="*.md" --include="*.mdx" || true)
if [ -n "$BAD" ]; then
echo "::error::Non-self-closing <img> tags found (MDX requires <img ... />):"
echo "$BAD"
exit 1
fi
- name: Fern check
run: fern check
- name: Check links
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
with:
args: --offline --no-progress 'docs/**/*.md'
fail: true