From: Otto Date: Tue, 23 Nov 2021 10:53:29 +0000 (+0100) Subject: Give steps a name X-Git-Tag: dnsdist-1.7.0-beta2~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10986%2Fhead;p=thirdparty%2Fpdns.git Give steps a name --- diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index 2a24c10345..b99f281dfa 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -15,14 +15,17 @@ jobs: with: fetch-depth: 5 submodules: recursive - - run: | + - name: Update dependencies + run: | sudo apt-get update sudo apt-get -qq --no-install-recommends install git clang-11 - - run: | + - name: Run format-code on files that should be formatted + run: | ./build-scripts/format-code $(find . -type f -name '*.[ch][ch]' | sort | comm -23 - .not-formatted) git --no-pager diff exit $(git diff | wc -l) - - run: | + - name: Report diffs for files that should be formatted + run: | exitcode=0 for f in $(find . -type f -name 'Makefile.am'); do ./build-scripts/test-sources-sorted.py ${f}