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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-06-06 18:37:17 +02:00
commit 67fc056e88
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -40,6 +40,12 @@ jobs:
make -C build-jw-foss pkg-install-release-deps make -C build-jw-foss pkg-install-release-deps
OFFLINE=true make -C build-jw-foss pkg-rebuild-reinstall 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 - name: Build package
shell: bash shell: bash
run: | run: |
@ -48,6 +54,12 @@ jobs:
make -C "${{ github.event.repository.name }}" pkg-install-testbuild-deps make -C "${{ github.event.repository.name }}" pkg-install-testbuild-deps
make -C "${{ github.event.repository.name }}" pkg-rebuild 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 - name: Install package
shell: bash shell: bash
run: | run: |