Skip to content

feat(tree): Include list of properties that changed in nodeChanged event #2515

feat(tree): Include list of properties that changed in nodeChanged event

feat(tree): Include list of properties that changed in nodeChanged event #2515

name: Website validation
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "docs/**"
- "*.md"
- "**/*.md"
- "!.changeset/**"
- "!build-tools/**"
- "!RELEASE_NOTES/**"
- "!server/**"
defaults:
run:
working-directory: ./docs
permissions:
pull-requests: read
jobs:
build_site:
runs-on: ubuntu-latest
name: Build site
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # ratchet:actions/checkout@v4
with:
submodules: false
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # ratchet:pnpm/action-setup@v4
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # ratchet:actions/setup-node@v3
with:
node-version: "18"
cache: "pnpm"
cache-dependency-path: docs/pnpm-lock.yaml
- name: Build site artifact
run: |
pnpm i --frozen-lockfile
npm run ci:build
- name: Upload site artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # ratchet:actions/upload-artifact@v3
with:
name: fluidframework-site
path: docs/public
retention-days: 3
lint:
runs-on: ubuntu-latest
name: pnpm lint
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # ratchet:actions/checkout@v4
with:
submodules: false
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # ratchet:pnpm/action-setup@v4
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # ratchet:actions/setup-node@v3
with:
node-version: "18"
cache: "pnpm"
cache-dependency-path: docs/pnpm-lock.yaml
- name: pnpm lint
run: |
pnpm i --frozen-lockfile
pnpm lint
broken_link_check:
runs-on: ubuntu-latest
name: 🔗 Broken Link Check
needs: build_site
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
with:
submodules: false
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # ratchet:pnpm/action-setup@v4
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # ratchet:actions/setup-node@v3
with:
node-version: "18"
cache: "pnpm"
cache-dependency-path: docs/pnpm-lock.yaml
- name: Create results folder
run: mkdir -p ./results
- name: Download site artifact
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # ratchet:actions/download-artifact@v3
with:
name: fluidframework-site
path: docs/public
- name: Install dependencies
run: "pnpm i --frozen-lockfile"
- name: Check for broken links
id: linkcheck
continue-on-error: true
run: |
set -o pipefail
pnpm run ci:linkcheck | tee ./results/linkcheck-output.txt
- name: Save PR number
run: echo ${{ github.event.number }} > ./results/pr
- name: Save linkcheck report
run: |
cat "$GITHUB_WORKSPACE/.github/workflows/data/linkcheck-${{ steps.linkcheck.outcome }}.md" | tee ./results/linkcheck
echo -e "\n#### linkcheck output\n\n\`\`\`" | tee -a ./results/linkcheck
cat ./results/linkcheck-output.txt | tee -a ./results/linkcheck
echo -e "\n\`\`\`" | tee -a ./results/linkcheck
- name: Upload results artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # ratchet:actions/upload-artifact@v3
with:
name: website-validation-results
path: ./docs/results
retention-days: 3