Add check links workflow #1
Workflow file for this run
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: Check Links | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
markdown-link-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository content | |
uses: actions/checkout@v3 | |
- name: Install Rust (required for Lychee) | |
run: sudo apt update && sudo apt install -y curl build-essential && curl https://sh.rustup.rs -sSf | sh -s -- -y | |
- name: Add Rust to PATH | |
run: source $HOME/.cargo/env | |
- name: Install Lychee | |
run: cargo install lychee | |
- name: Run Lychee to check links | |
run: lychee --verbose --all |