mirror of https://github.com/apache/druid.git
cache mvn dependencies across tests without building (#13962)
This commit is contained in:
parent
488f1d8363
commit
3c096c01a2
|
@ -17,18 +17,48 @@ name: Cron Job ITs
|
||||||
on:
|
on:
|
||||||
schedule: # Runs by default on master branch
|
schedule: # Runs by default on master branch
|
||||||
- cron: '0 3 * * *' # Runs every day at 3:00 AM UTC
|
- cron: '0 3 * * *' # Runs every day at 3:00 AM UTC
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'owasp-dependency-check-suppressions.xml'
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- /^\d+\.\d+\.\d+(-\S*)?$/ # release branches
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
'owasp-dependency-check-suppressions.xml'
|
'owasp-dependency-check-suppressions.xml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build:
|
||||||
|
if: github.event_name == 'schedule'
|
||||||
|
name: build (jdk8)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout branch
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup java
|
||||||
|
run: export JAVA_HOME=$JAVA_HOME_8_X64
|
||||||
|
|
||||||
|
- name: Cache Maven m2 repository
|
||||||
|
id: maven
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: maven-${{ runner.os }}-8-${{ github.sha }}
|
||||||
|
|
||||||
|
- name: Maven build
|
||||||
|
id: maven_build
|
||||||
|
run: |
|
||||||
|
./it.sh ci
|
||||||
|
|
||||||
integration-index-tests-middleManager:
|
integration-index-tests-middleManager:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
testing_group: [batch-index, input-format, input-source, perfect-rollup-parallel-batch-index, kafka-index, kafka-index-slow, kafka-transactional-index, kafka-transactional-index-slow, kafka-data-format, ldap-security, realtime-index, append-ingestion, compaction]
|
testing_group: [batch-index, input-format, input-source, perfect-rollup-parallel-batch-index, kafka-index, kafka-index-slow, kafka-transactional-index, kafka-transactional-index-slow, kafka-data-format, ldap-security, realtime-index, append-ingestion, compaction]
|
||||||
uses: ./.github/workflows/reusable-standard-its.yml
|
uses: ./.github/workflows/reusable-standard-its.yml
|
||||||
|
needs: build
|
||||||
with:
|
with:
|
||||||
build_jdk: 8
|
build_jdk: 8
|
||||||
runtime_jdk: 11
|
runtime_jdk: 11
|
||||||
|
@ -42,6 +72,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
testing_group: [ input-source, perfect-rollup-parallel-batch-index, kafka-index, kafka-transactional-index, kafka-index-slow, kafka-transactional-index-slow, kafka-data-format, append-ingestion, compaction ]
|
testing_group: [ input-source, perfect-rollup-parallel-batch-index, kafka-index, kafka-transactional-index, kafka-index-slow, kafka-transactional-index-slow, kafka-data-format, append-ingestion, compaction ]
|
||||||
uses: ./.github/workflows/reusable-standard-its.yml
|
uses: ./.github/workflows/reusable-standard-its.yml
|
||||||
|
needs: build
|
||||||
with:
|
with:
|
||||||
build_jdk: 8
|
build_jdk: 8
|
||||||
runtime_jdk: 11
|
runtime_jdk: 11
|
||||||
|
@ -55,6 +86,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
testing_group: [ query, query-retry, query-error, security, high-availability ]
|
testing_group: [ query, query-retry, query-error, security, high-availability ]
|
||||||
uses: ./.github/workflows/reusable-standard-its.yml
|
uses: ./.github/workflows/reusable-standard-its.yml
|
||||||
|
needs: build
|
||||||
with:
|
with:
|
||||||
build_jdk: 8
|
build_jdk: 8
|
||||||
runtime_jdk: 11
|
runtime_jdk: 11
|
||||||
|
@ -69,6 +101,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
indexer: [ middleManager, indexer ]
|
indexer: [ middleManager, indexer ]
|
||||||
uses: ./.github/workflows/reusable-standard-its.yml
|
uses: ./.github/workflows/reusable-standard-its.yml
|
||||||
|
needs: build
|
||||||
with:
|
with:
|
||||||
build_jdk: 8
|
build_jdk: 8
|
||||||
runtime_jdk: 11
|
runtime_jdk: 11
|
||||||
|
@ -86,8 +119,16 @@ jobs:
|
||||||
- name: Checkout branch
|
- name: Checkout branch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: setup java
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '8'
|
||||||
|
distribution: 'zulu'
|
||||||
|
cache: maven
|
||||||
|
|
||||||
- name: security vulnerabilities check
|
- name: security vulnerabilities check
|
||||||
env:
|
env:
|
||||||
|
MVN: mvn --no-snapshot-updates
|
||||||
HADOOP_PROFILE: ${{ matrix.HADOOP_PROFILE }}
|
HADOOP_PROFILE: ${{ matrix.HADOOP_PROFILE }}
|
||||||
run: |
|
run: |
|
||||||
mvn dependency-check:purge dependency-check:check ${HADOOP_PROFILE} || { echo "
|
mvn dependency-check:purge dependency-check:check ${HADOOP_PROFILE} || { echo "
|
||||||
|
|
Loading…
Reference in New Issue