mirror of
https://github.com/Mo3he/Axis_Cam_Tailscale.git
synced 2026-09-27 02:04:15 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user