Skip to content

WIP: Retry link checking #1383

WIP: Retry link checking

WIP: Retry link checking #1383

Workflow file for this run

name: Run Checks
on:
push:
branches:
- main
pull_request:
jobs:
check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Shell script static analysis
run: shellcheck bin/fetch-configlet bin/verify-unity-version bin/check-unitybegin format.sh
- name: Check concept exercises formatting
run: |
find exercises/concept/ -path '*/test-framework' -prune -o \
\( -iname '*.h' -o -iname '*.c' \) -print0 |\
xargs --null clang-format --dry-run --Werror
- name: Check practice exercises formatting
run: |
find exercises/practice/ -path '*/test-framework' -prune -o \
\( -iname '*.h' -o -iname '*.c' \) -print0 |\
xargs --null clang-format --dry-run --Werror
- name: Check Unity version
run: ./bin/verify-unity-version ./exercises/concept ./exercises/practice
- name: Check unitybegin()
run: ./bin/check-unitybegin ./exercises/concept ./exercises/practice
- name: Check include guards
run: ./bin/check-include-guards ./exercises/concept ./exercises/practice
- name: Check links
uses: lycheeverse/lychee-action@885c65f3dc543b57c898c8099f4e08c8afd178a2
id: lychee
with:
args: --cache --max-retries 3 --retry-wait-time 5 --max-concurrency 30 --exclude "stackoverflow.com/*" "gnu.org/*"
--insecure --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
--no-progress **/*.md **/*.html
fail: true
token: ${{ secrets.GITHUB_TOKEN }}