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
|
||||
env:
|
||||
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: |
|
||||
# Debug echo
|
||||
echo "Mysql driver: ${MYSQL_DRIVER_CLASSNAME}"
|
||||
|
|
|
@ -91,5 +91,5 @@ jobs:
|
|||
- name: test & coverage
|
||||
env:
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue