Skip to content

Add smart on fhir and on prem accelerator deployment guides #14

Add smart on fhir and on prem accelerator deployment guides

Add smart on fhir and on prem accelerator deployment guides #14

name: PR Build Check
on:
pull_request:
branches:
- main
jobs:
build-check:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: en/package-lock.json
- name: Install dependencies
run: |
cd en/
npm ci
- name: Build Docusaurus site
id: build
run: |
cd en/
set -o pipefail
npm run build 2>&1 | tee build.log
env:
BASE_URL: /open-healthcare-docs/
- name: Report broken-link warnings
if: always()
continue-on-error: true
run: |
cd en/
{
echo "## Broken links";
echo "";
if [ ! -f build.log ]; then
echo "_Build log not found — skipping._";
else
matches=$(grep -niE "broken (link|markdown link|anchor)|docusaurus found broken" build.log || true)
if [ -z "$matches" ]; then
echo "No broken-link warnings reported by the build.";
else
echo "The build reported the following warnings (the build is configured with \`onBrokenLinks: 'warn'\`, so it does not fail):";
echo "";
echo '```';
echo "$matches";
echo '```';
fi
fi
} | tee -a "${GITHUB_STEP_SUMMARY:-/dev/null}"