feat(ci): add nightly onboard trace timing summaries #3019
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Docs / Link Check | |
| on: | |
| pull_request: | |
| branches: [main] | |
| types: [opened, reopened, synchronize] | |
| paths: | |
| - "**/*.md" | |
| - ".github/workflows/docs-links-pr.yaml" | |
| - "test/e2e/e2e-cloud-experimental/check-docs.sh" | |
| permissions: | |
| contents: read | |
| jobs: | |
| markdown-links: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Determine changed documentation files | |
| id: changed | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| base="${{ github.event.pull_request.base.sha }}" | |
| head="${{ github.event.pull_request.head.sha }}" | |
| mapfile -t doc_files < <( | |
| # Fern preview validates MDX routes after building variant navigation. | |
| # This raw Markdown checker only verifies repository-local .md links. | |
| git diff --name-only --diff-filter=ACMR "$base" "$head" -- \ | |
| '*.md' \ | |
| ':(exclude)node_modules/**' \ | |
| ':(exclude)dist/**' \ | |
| ':(exclude)vendor/**' \ | |
| ':(exclude)build/**' \ | |
| | LC_ALL=C sort -u | |
| ) | |
| if [[ "${#doc_files[@]}" -eq 0 ]]; then | |
| echo "has_files=false" >> "$GITHUB_OUTPUT" | |
| exit 0 | |
| fi | |
| echo "has_files=true" >> "$GITHUB_OUTPUT" | |
| { | |
| echo "files<<EOF" | |
| printf '%s\n' "${doc_files[@]}" | |
| echo "EOF" | |
| } >> "$GITHUB_OUTPUT" | |
| - name: Run markdown link checker | |
| if: steps.changed.outputs.has_files == 'true' | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| mapfile -t doc_files <<< "${{ steps.changed.outputs.files }}" | |
| bash test/e2e/e2e-cloud-experimental/check-docs.sh --only-links --local-only "${doc_files[@]}" |