Add link checker CI for pull requests #2
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: Link checker | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
name: Link checker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: npm | ||
- name: MDX Broken Link Checker | ||
uses: KaiSpencer/gh-action-check-broken-links@v0 | ||
with: | ||
Check failure on line 26 in .github/workflows/links.yaml
|
||
# Required: The base URL to check links against | ||
# For example: /pages/foo.mdx will be checked against https://mysite.com/foo | ||
baseUrl: 'https://nyu-its.github.io/rts-docs-dev/' | ||