Skip to content

Commit

Permalink
feat(docker): run scripts/tests.sh if exists
Browse files Browse the repository at this point in the history
Signed-off-by: Artsiom Koltun <[email protected]>
  • Loading branch information
artek-koltun committed Oct 27, 2023
1 parent a19b88b commit b59fec1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ jobs:
exit 1
fi
if [ -f scripts/tests.sh ]; then
scripts/tests.sh || exit $?
else
echo "No scripts/tests.sh"
fi
- name: Logs
if: always()
run: docker-compose logs
Expand Down
5 changes: 5 additions & 0 deletions scripts/tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2022 Intel Corporation

echo "A script with some tests"

0 comments on commit b59fec1

Please sign in to comment.