fix: Improve performance by reducing FS reqeusts (#5103) #7377
This file contains 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
name: Test - Build Docs | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
test-build-docs: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: | |
# List of supported node versions (latest is tested in `test-os`) | |
- 18.x | |
os: | |
- ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: pnpm run test-build-docs | |
# Ensure the repository is clean after build & test | |
- run: git --no-pager diff --compact-summary --exit-code |