Skip to content

Commit

Permalink
Solves #120. Adds a link checker CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
samcunliffe committed Jul 26, 2023
1 parent 05647ba commit ea7a99b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is a basic workflow to check for broken links with GitHub Actions

name: Link Checker

on:
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
linkChecker:
timeout-minutes: 2
# The type of runner that the job will run on
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Link Checker
id: lychee
uses: lycheeverse/[email protected]
# Currently just checks internal links by excluding anything starting with "http"
with:
args: "--verbose --exclude-mail --exclude http.* -- ."
fail: true
jobSummary: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit ea7a99b

Please sign in to comment.