Run tests/run.sh in CI when a repo has one

Regenerated from Axis_Cam_Template/ci/build.yml.tmpl via acap-ci.sh.
Repos without a tests/run.sh skip the step.
This commit is contained in:
Weston Blieden
2026-09-15 12:46:05 +02:00
parent 3413d3a992
commit 559fe42294
+12
View File
@@ -61,6 +61,18 @@ jobs:
- name: Apply version and upstream pins
run: ./ci/apply-version.sh "$VERSION" "$UPSTREAM_VERSION"
# Repos without a tests/run.sh simply skip this.
- name: Run unit tests
run: |
set -euo pipefail
if [ -x tests/run.sh ] || [ -f tests/run.sh ]; then
sudo apt-get update
sudo apt-get install -y --no-install-recommends pkg-config libglib2.0-dev
sh tests/run.sh
else
echo "no tests/run.sh, skipping"
fi
- name: Build packages
run: ./ci/build-packages.sh