Skip to content

Commit

Permalink
Add link checker CI for pull requests
Browse files Browse the repository at this point in the history
	modified:   .github/workflows/build.yaml
	new file:   .github/workflows/links.yaml
  • Loading branch information
s-sajid-ali committed Oct 28, 2024
1 parent 3252fe0 commit 97bd110
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to GitHub Pages
name: Build

on:
pull_request:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/links.yaml
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/'

0 comments on commit 97bd110

Please sign in to comment.