-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added initial bats tests and github action set up #7
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple small questions, otherwise LGTM... at least for my bash-fu ;)
Feedback on the review:
|
@@ -46,4 +46,4 @@ run_ssh "podman exec \ | |||
-e PULL_REQUEST_PROCESSOR_HOME="${PULL_REQUEST_PROCESSOR_HOME}" \ | |||
-e VERSION="${VERSION}" \ | |||
-e COMPONENT_UPGRADE_LOGGER="${COMPONENT_UPGRADE_LOGGER}" \ | |||
-ti ${CONTAINER_NAME} '${BUILD_SCRIPT}' ${@}" | |||
-ti ${CONTAINER_NAME} '${BUILD_SCRIPT}' $*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be OK, but @rpelisse could you confirm this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gaol! I think running shellcheck with |
@@ -46,4 +46,4 @@ run_ssh "podman exec \ | |||
-e PULL_REQUEST_PROCESSOR_HOME="${PULL_REQUEST_PROCESSOR_HOME}" \ | |||
-e VERSION="${VERSION}" \ | |||
-e COMPONENT_UPGRADE_LOGGER="${COMPONENT_UPGRADE_LOGGER}" \ | |||
-ti ${CONTAINER_NAME} '${BUILD_SCRIPT}' ${@}" | |||
-ti ${CONTAINER_NAME} '${BUILD_SCRIPT}' $*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done | ||
exit 1 | ||
fi | ||
echo 'Done - PASSED' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gaol There seems to be quite a lot of code duplication from Harmonia's testsuite... I wonder if it would no be cleaner to have Jenkins checkout Harmonia inside the Hera folder and reuse the stuff... WDTK?
@gaol where are we on this PR? It seems to have gone stale, can you rebase and update? |
Ah, it must had been lost in my list 😁 will update it soon |
This PR tries to add initial bats tests for Hera and set up github action CI.
tests/tests-common.sh
- based on the one in harmoniatests/tests-suite.sh
- based on the one in harmonia