Skip to content

Commit

Permalink
feat: file reference linter
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Sep 16, 2024
1 parent bb666be commit c3c91ed
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" {} +

0 comments on commit c3c91ed

Please sign in to comment.