This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new abd796d (chores) ci: archive all files from the test run
abd796d is described below
commit abd796db7105e38df6bc2e54b45be0f745f33ea7
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Thu Mar 31 19:18:27 2022 +0200
(chores) ci: archive all files from the test run
---
.github/actions/quick-test/action.yaml | 2 +-
.github/actions/quick-test/quick-test.sh | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/.github/actions/quick-test/action.yaml
b/.github/actions/quick-test/action.yaml
index 78c7398..bee7f66 100644
--- a/.github/actions/quick-test/action.yaml
+++ b/.github/actions/quick-test/action.yaml
@@ -36,4 +36,4 @@ runs:
if: always()
with:
name: test-logs
- path: automated-build-log/**.log
+ path: automated-build-log/**/*
diff --git a/.github/actions/quick-test/quick-test.sh
b/.github/actions/quick-test/quick-test.sh
index 67122dc..672da55 100755
--- a/.github/actions/quick-test/quick-test.sh
+++ b/.github/actions/quick-test/quick-test.sh
@@ -73,16 +73,18 @@ function main() {
local startCommit=${1:-""}
local endCommit=${2:-""}
+ mkdir -p "${logDir}"
+
echo "Searching for modified components"
local components=$(git diff "${startCommit}^..${endCommit}" --name-only
--pretty=format:"" | grep -e '^components' | grep -v -e '^$' | cut -d / -f 1-2
| uniq | sort)
local total=$(echo "${components}" | grep -v -e '^$' | wc -l)
if [[ ${total} -eq 0 ]]; then
- echo "result=There are (likely) no components to be tested in this PR" >
"${logDir}"/results.txt
+ echo "result=There are (likely) no components to be tested in this PR" >
"${logDir}/results.txt"
exit 0
else
if [[ ${total} -gt 10 ]]; then
- echo "result=There are too many components to be tested in this PR" >
"${logDir}"/results.txt
+ echo "result=There are too many components to be tested in this PR" >
"${logDir}/results.txt"
exit 0
fi
fi
@@ -91,16 +93,15 @@ function main() {
echo "${components}"
current=0
- mkdir -p "${logDir}"
for component in $(echo $components); do
((current++))
componentTest "${component}" "${total}" "${current}"
done
if [[ ${failures} -eq 0 ]]; then
- echo "result=:heavy_check_mark: Finished verification: ${total} verified /
${failures} failed" > "${logDir}"/results.txt
+ echo "result=:heavy_check_mark: Finished verification: ${total} verified /
${failures} failed" > "${logDir}/results.txt"
else
- echo "result=:x: Finished verification: ${total} verified / ${failures}
failed" > "${logDir}"/results.txt
+ echo "result=:x: Finished verification: ${total} verified / ${failures}
failed" > "${logDir}/results.txt"
fi
exit "${failures}"