diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 962ba30..8fd7d4e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,3 +27,24 @@ jobs: - name: Exit with error if format check failed if: steps.fmt-check.outcome == 'failure' run: exit 1 + + file-ref-check: + name: file-ref-check + runs-on: ubuntu-latest + strategy: + matrix: + docs: [canary-checker, mission-control] + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v4 + with: + node-version: '20.11.1' + + - name: Check for broken file references + run: | + cd ${{matrix.docs}} + npm ci + npm run build + cd build + find . -type f -name "*.html" -exec grep -il "file=../../../modules" {} +