From 67fc056e887a932b8a352ee454ee070fc5cfa4a7 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 6 Jun 2026 18:37:17 +0200 Subject: [PATCH] test-packaging.yaml: Add static code checks Add pre- and post-build static code checks via "make check". A repository should specify all checks that it wants to run during CI as dependencies of target "check" in the toplevel Makefile. Signed-off-by: Jan Lindemann --- .github/workflows/test-packaging.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test-packaging.yaml b/.github/workflows/test-packaging.yaml index 0fb818d..97ba3b1 100644 --- a/.github/workflows/test-packaging.yaml +++ b/.github/workflows/test-packaging.yaml @@ -40,6 +40,12 @@ jobs: make -C build-jw-foss pkg-install-release-deps OFFLINE=true make -C build-jw-foss pkg-rebuild-reinstall + - name: Run pre-build static code checks + shell: bash + run: | + set -euxo pipefail + make -C "${{ github.event.repository.name }}" check + - name: Build package shell: bash run: | @@ -48,6 +54,12 @@ jobs: make -C "${{ github.event.repository.name }}" pkg-install-testbuild-deps make -C "${{ github.event.repository.name }}" pkg-rebuild + - name: Run post-build static code checks + shell: bash + run: | + set -euxo pipefail + make -C "${{ github.event.repository.name }}" check + - name: Install package shell: bash run: |