mirror of https://github.com/apache/druid.git
Fix GHA workflow maven build erroring incase of version updates (#13735)
* build maven sequentially * run mvn tests in offline mode after retrieving cache
This commit is contained in:
parent
7c188d80b8
commit
440212c5f9
|
@ -78,7 +78,7 @@ jobs:
|
||||||
- name: Run IT
|
- name: Run IT
|
||||||
env:
|
env:
|
||||||
MYSQL_DRIVER_CLASSNAME: ${{ inputs.mysql_driver }}
|
MYSQL_DRIVER_CLASSNAME: ${{ inputs.mysql_driver }}
|
||||||
MVN: ${{ format('{0} {1}', env.MVN, (steps.maven-restore.outputs.cache-hit && 'dependency:go-offline' || '-U')) }}
|
MVN: ${{ format('{0} {1}', env.MVN, (steps.maven-restore.outputs.cache-hit && '-o' || '-U')) }}
|
||||||
run: |
|
run: |
|
||||||
# Debug echo
|
# Debug echo
|
||||||
echo "Mysql driver: ${MYSQL_DRIVER_CLASSNAME}"
|
echo "Mysql driver: ${MYSQL_DRIVER_CLASSNAME}"
|
||||||
|
|
|
@ -91,5 +91,5 @@ jobs:
|
||||||
- name: test & coverage
|
- name: test & coverage
|
||||||
env:
|
env:
|
||||||
MAVEN_PROJECTS: ${{ inputs.maven_projects }}
|
MAVEN_PROJECTS: ${{ inputs.maven_projects }}
|
||||||
MVN: ${{ format('{0} {1}', env.MVN, (steps.maven-restore.outputs.cache-hit && 'dependency:go-offline' || '-U')) }}
|
MVN: ${{ format('{0} {1}', env.MVN, (steps.maven-restore.outputs.cache-hit && '-o' || '-U')) }}
|
||||||
run: ./.github/scripts/unit_tests_script.sh
|
run: ./.github/scripts/unit_tests_script.sh
|
||||||
|
|
2
it.sh
2
it.sh
|
@ -194,7 +194,7 @@ case $CMD in
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
"ci" )
|
"ci" )
|
||||||
mvn -q clean package dependency:go-offline -P dist $MAVEN_IGNORE -T1.0C
|
mvn -q clean package dependency:go-offline -P dist $MAVEN_IGNORE
|
||||||
;;
|
;;
|
||||||
"build" )
|
"build" )
|
||||||
mvn clean package -P dist $MAVEN_IGNORE -T1.0C
|
mvn clean package -P dist $MAVEN_IGNORE -T1.0C
|
||||||
|
|
Loading…
Reference in New Issue