Merge pull request #8234 from magnesj/test-broken-links

Add workflow file to test for broken links
This commit is contained in:
Magne Sjaastad 2021-11-03 11:59:35 +01:00 committed by GitHub
parent 34a5d22402
commit 1655966a22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,24 @@
name: Broken link check
on:
push:
branches:
- gh-pages
workflow_dispatch:
jobs:
broken_link_checker_job:
runs-on: ubuntu-latest
name: Check for broken links
steps:
- name: Check for broken links
id: link-report
uses: celinekurpershoek/link-checker@v1.0.1
with:
# Required:
url: 'https://resinsight.org/'
# optional:
honorRobotExclusions: false
ignorePatterns: ''
recursiveLinks: false # Check all URLs on all reachable pages (could take a while)
- name: Get the result
run: echo "${{steps.link-report.outputs.result}}"