Skip to content

Commit

Permalink
Release smoke tests (#9236)
Browse files Browse the repository at this point in the history
- Update etc/scripts/smoketest.sh
- Update release workflow to run smoke tests
- Add a job that resolves io.helidon:helidon-all
  • Loading branch information
romain-grecourt authored Sep 4, 2024
1 parent a548209 commit c0cce19
Show file tree
Hide file tree
Showing 4 changed files with 288 additions and 268 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,47 @@ jobs:
with:
name: io-helidon-artifacts-${{ needs.create-tag.outputs.version }}
path: staging
resolve-all:
needs: [ create-tag, deploy ]
timeout-minutes: 30
runs-on: ubuntu-20.04
name: resolve-all
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
ref: ${{ needs.create-tag.outputs.tag }}
- uses: ./.github/actions/common
with:
run: |
mvn ${MAVEN_ARGS} -N \
-Possrh-staging \
-Dartifact=io.helidon:helidon-all:${{ needs.create-tag.outputs.version }}:pom \
dependency:get
smoketest:
needs: [ create-tag, deploy ]
timeout-minutes: 30
strategy:
matrix:
archetype:
- bare-se
- bare-mp
- quickstart-se
- quickstart-mp
- database-se
- database-mp
runs-on: ubuntu-20.04
name: smoketest/${{ matrix.archetype }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
ref: ${{ needs.create-tag.outputs.tag }}
- uses: ./.github/actions/common
with:
run: |
./etc/scripts/smoketest.sh \
--clean \
--staged \
--version=${{ needs.create-tag.outputs.version }} \
--archetype=${{ matrix.archetype }}
12 changes: 6 additions & 6 deletions etc/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on_error(){
CODE="${?}" && \
set +x && \
printf "[ERROR] Error(code=%s) occurred at %s:%s command: %s\n" \
"${CODE}" "${BASH_SOURCE[0]}" "${LINENO}" "${BASH_COMMAND}" >&2
"${CODE}" "${BASH_SOURCE[0]}" "${LINENO}" "${BASH_COMMAND}" >&2
}
trap on_error ERR

Expand Down Expand Up @@ -99,16 +99,16 @@ readonly COMMAND
exec 6>&1 1>&2

if [ -z "${COMMAND+x}" ] ; then
echo "ERROR: no command provided"
exit 1
echo "ERROR: no command provided"
exit 1
fi

case ${COMMAND} in
"update_version")
if [ -z "${VERSION}" ] ; then
echo "ERROR: version required" >&2
usage
exit 1
echo "ERROR: version required" >&2
usage
exit 1
fi
;;
"create_tag"|"get_version")
Expand Down
Loading

0 comments on commit c0cce19

Please sign in to comment.