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:
parent
b0f18931ac
commit
67fc056e88
1 changed files with 12 additions and 0 deletions
12
.github/workflows/test-packaging.yaml
vendored
12
.github/workflows/test-packaging.yaml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue