25 lines
925 B
YAML
25 lines
925 B
YAML
name: Test Release
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Write settings.xml
|
|
if: ${{ env.RELEASE_TRAIN_SETTINGS_XML != '' }}
|
|
shell: bash
|
|
run: |
|
|
echo "::notice::Writing provided settings-xml input to release-train-settings.xml"
|
|
echo "${RELEASE_TRAIN_SETTINGS_XML}" > release-train-settings.xml
|
|
- name: Prepare Maven command
|
|
shell: bash
|
|
run: |
|
|
MAVEN_LOGGING_OPTS=()
|
|
if [[ "${RUNNER_DEBUG}" == "1" || "${ACTIONS_STEP_DEBUG}" == "true" ]]; then
|
|
echo "::notice::transfer-progress enabled"
|
|
else
|
|
MAVEN_LOGGING_OPTS+=(--no-transfer-progress)
|
|
fi
|
|
|
|
echo "RELEASE_TRAIN_MVN=./mvnw --batch-mode ${MAVEN_LOGGING_OPTS[*]} --settings release-train-settings.xml clean verify -Dgpg.skip" >> "${GITHUB_ENV}"
|
|
- name: Test Release
|
|
shell: bash
|
|
run: ${RELEASE_TRAIN_MVN} --activate-profiles releaseTrain,release,ci
|