mirror of https://github.com/apache/druid.git
update snapshots if cache restore failed otherwise run test normally (not all test mvn dependencies are downloaded during build phase due to skipTests) (#13740)
This commit is contained in:
parent
440212c5f9
commit
6cb842e76e
|
@ -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 && '-o' || '-U')) }}
|
||||
MVN: ${{ format('{0}{1}', env.MVN, (steps.maven-restore.outputs.cache-hit && '' || ' -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 && '-o' || '-U')) }}
|
||||
MVN: ${{ format('{0}{1}', env.MVN, (steps.maven-restore.outputs.cache-hit && '' || ' -U')) }}
|
||||
run: ./.github/scripts/unit_tests_script.sh
|
||||
|
|
|
@ -43,15 +43,6 @@ jobs:
|
|||
- name: Checkout branch
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Cache Maven m2 repository
|
||||
id: maven
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: maven-${{ runner.os }}-${{ matrix.jdk }}-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
maven-${{ runner.os }}-${{ matrix.jdk }}
|
||||
|
||||
- name: Setup java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
|
@ -63,6 +54,15 @@ jobs:
|
|||
run: |
|
||||
./it.sh ci
|
||||
|
||||
- name: Cache Maven m2 repository
|
||||
id: maven
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: maven-${{ runner.os }}-${{ matrix.jdk }}-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
maven-${{ runner.os }}-${{ matrix.jdk }}
|
||||
|
||||
- name: Cache targets
|
||||
id: target
|
||||
uses: actions/cache@v3
|
||||
|
|
Loading…
Reference in New Issue