Skip to content

Commit b59fec1

Browse files
committed
feat(docker): run scripts/tests.sh if exists
Signed-off-by: Artsiom Koltun <artsiom.koltun@intel.com>
1 parent a19b88b commit b59fec1

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ jobs:
103103
exit 1
104104
fi
105105
106+
if [ -f scripts/tests.sh ]; then
107+
scripts/tests.sh || exit $?
108+
else
109+
echo "No scripts/tests.sh"
110+
fi
111+
106112
- name: Logs
107113
if: always()
108114
run: docker-compose logs

scripts/tests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
# SPDX-License-Identifier: Apache-2.0
3+
# Copyright (c) 2022 Intel Corporation
4+
5+
echo "A script with some tests"

0 commit comments

Comments
 (0)