generated from NYU-ITS/repo-settings-test-1
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add link checker CI for pull requests
modified: .github/workflows/build.yaml new file: .github/workflows/links.yaml
- Loading branch information
1 parent
3252fe0
commit 97bd110
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Deploy to GitHub Pages | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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: | ||
# 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/' | ||
|