Skip to content

Disable lychee-action #1266

Disable lychee-action

Disable lychee-action #1266

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@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Shell script static analysis
run: shellcheck bin/fetch-configlet bin/verify-unity-version bin/check-unitybegin bin/run-tests 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@6f793a7135344461673eecb342c75f3f110f5ebd
id: lychee
with:
args: --user-agent "curl/8.4.0" --no-progress **/*.md **/*.html
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Fail if there were link errors
run: exit ${{ steps.lychee.outputs.exit_code }}