Skip to content

Commit

Permalink
Add CI job to verify that we have no broken links.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker committed May 24, 2024
1 parent 6d707bb commit fdd0dfa
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "CI"

on:
pull_request:
branches:
- main

jobs:
check-links:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build API reference
run: |
cd book
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=.
mdbook build
- name: Link Checker
uses: lycheeverse/lychee-action@v1
with:
fail: true
args: |
--exclude-loopback
--require-https
--no-progress
book/book

0 comments on commit fdd0dfa

Please sign in to comment.