From 8e08f6037f435976a6097948a120d3674503e581 Mon Sep 17 00:00:00 2001 From: Thomas Padioleau Date: Thu, 13 Mar 2025 19:13:28 +0100 Subject: [PATCH] Add a link checker --- .github/workflows/website-checks.yml | 21 +++++++++++++++++++++ .linkcheckerrc | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/website-checks.yml create mode 100644 .linkcheckerrc diff --git a/.github/workflows/website-checks.yml b/.github/workflows/website-checks.yml new file mode 100644 index 0000000..c9da7ca --- /dev/null +++ b/.github/workflows/website-checks.yml @@ -0,0 +1,21 @@ +--- +name: Website tests + +on: + pull_request: # To be removed + schedule: + - cron: "0 1 * * 1" # every Monday at 1am + workflow_dispatch: + +jobs: + links-check: + name: Links check using linkchecker + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install linkchecker + run: | + pipx install linkchecker + - name: Analysing the links of the website + run: | + linkchecker --check-extern --config=.linkcheckerrc --no-status https://kokkos.org diff --git a/.linkcheckerrc b/.linkcheckerrc new file mode 100644 index 0000000..44319f7 --- /dev/null +++ b/.linkcheckerrc @@ -0,0 +1,2 @@ +[filtering] +ignorewarnings=http-redirected