forked from exercism/c
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1.15 KB
/
checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Run Checks
on:
push:
branches:
- main
pull_request:
jobs:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- name: Shell script static analysis
run: shellcheck bin/fetch-configlet bin/verify-unity-version bin/check-unitybegin bin/run-tests format.sh
- name: Check practices 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
- name: Check unitybegin()
run: ./bin/check-unitybegin
- name: Check include guards
run: ./bin/check-include-guards
- name: Check links
uses: lycheeverse/lychee-action@b64a484daf764c3f01323fc9dfc4546adb9a6718
id: lychee
with:
args: --no-progress **/*.md **/*.html
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Fail if there were link errors
run: exit ${{ steps.lychee.outputs.exit_code }}