mirror of https://github.com/apache/druid.git
Upgrade GHA dependencies (#15954)
* Upgrade actions/checkout from v3 to v4. * Upgrade actions/setup-java from v3 to v4. * Upgrade dorny/paths-filter, actions/cdache/restore, actions/stale to v3, v4 and v9 respectively. * Add a GHA label for .github/** and skip UT/IT on .github files. * remove skipping UT/IT on .github/** changes.
This commit is contained in:
parent
5f203725dd
commit
daf03939a9
|
@ -89,3 +89,8 @@
|
|||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'extensions-contrib/kubernetes-overlord-extensions/**'
|
||||
|
||||
'GHA':
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- '.github/**'
|
||||
|
|
|
@ -35,9 +35,9 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: '8'
|
||||
|
|
|
@ -32,17 +32,17 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: setup java
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '8'
|
||||
distribution: 'zulu'
|
||||
|
||||
- name: Cache Maven m2 repository
|
||||
id: maven
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: maven-${{ runner.os }}-8-${{ github.sha }}
|
||||
|
@ -117,10 +117,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: setup java
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '8'
|
||||
distribution: 'zulu'
|
||||
|
|
|
@ -36,6 +36,6 @@ jobs:
|
|||
docker-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build the Docker image
|
||||
run: DOCKER_BUILDKIT=1 docker build -t apache/druid:tag -f distribution/docker/Dockerfile .
|
||||
|
|
|
@ -75,31 +75,31 @@ jobs:
|
|||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: setup java
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: ${{ inputs.build_jdk }}
|
||||
distribution: 'zulu'
|
||||
|
||||
- name: Restore Maven repository
|
||||
id: maven-restore
|
||||
uses: actions/cache/restore@v3
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: maven-${{ runner.os }}-${{ inputs.build_jdk }}-${{ github.sha }}
|
||||
|
||||
- name: Restore targets
|
||||
id: targets-restore
|
||||
uses: actions/cache/restore@v3
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ./**/target
|
||||
key: maven-${{ runner.os }}-${{ inputs.build_jdk }}-targets-${{ github.sha }}
|
||||
|
||||
- name: Retrieve cached docker image
|
||||
id: docker-restore
|
||||
uses: actions/cache/restore@v3
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
key: druid-container-jdk${{ inputs.build_jdk }}.tar.gz-${{ github.sha }}
|
||||
path: |
|
||||
|
|
|
@ -60,17 +60,17 @@ jobs:
|
|||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: setup java
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: ${{ inputs.runtime_jdk }}
|
||||
distribution: 'zulu'
|
||||
|
||||
- name: Restore Maven repository
|
||||
id: maven-restore
|
||||
uses: actions/cache/restore@v3
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: maven-${{ runner.os }}-${{ inputs.build_jdk }}-${{ github.sha }}
|
||||
|
|
|
@ -55,13 +55,13 @@ jobs:
|
|||
coverage_failure: ${{ steps.set_outputs.outputs.coverage_failure }}
|
||||
steps:
|
||||
- name: checkout branch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
# skip the "cache: maven" step from setup-java. We explicitly use a
|
||||
# different cache key since we cannot reuse it across commits.
|
||||
- uses: actions/setup-java@v3
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: ${{ inputs.jdk }}
|
||||
|
@ -70,7 +70,7 @@ jobs:
|
|||
# we include github.sha in the cache key to make it specific to that build/jdk
|
||||
- name: Restore Maven repository
|
||||
id: maven-restore
|
||||
uses: actions/cache/restore@v3
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: maven-${{ runner.os }}-${{ inputs.jdk }}-${{ github.sha }}
|
||||
|
|
|
@ -33,7 +33,7 @@ jobs:
|
|||
# the common extension in revised ITs is different from the one in standard ITs
|
||||
common-extensions: ${{ steps.filter.outputs.common-extensions }}
|
||||
steps:
|
||||
- uses: dorny/paths-filter@v2
|
||||
- uses: dorny/paths-filter@v3
|
||||
if: github.event_name == 'pull_request'
|
||||
id: filter
|
||||
with:
|
||||
|
|
|
@ -23,7 +23,7 @@ jobs:
|
|||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v8
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-message: |
|
||||
|
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
core: ${{ steps.filter.outputs.core || github.event_name != 'pull_request'}}
|
||||
common-extensions: ${{ steps.filter.outputs.common-extensions }}
|
||||
steps:
|
||||
- uses: dorny/paths-filter@v2
|
||||
- uses: dorny/paths-filter@v3
|
||||
if: github.event_name == 'pull_request'
|
||||
id: filter
|
||||
with:
|
||||
|
@ -148,10 +148,10 @@ jobs:
|
|||
BUILD_DRUID_CLUSTER: true
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: setup java
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '8'
|
||||
distribution: 'zulu'
|
||||
|
@ -160,7 +160,7 @@ jobs:
|
|||
# we include github.sha in the cache key to make it specific to that build/jdk
|
||||
- name: Restore Maven repository
|
||||
id: maven-restore
|
||||
uses: actions/cache/restore@v3
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: maven-${{ runner.os }}-8-${{ github.sha }}
|
||||
|
|
|
@ -45,9 +45,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout branch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: ${{ matrix.java }}
|
||||
|
@ -118,9 +118,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout branch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: '8'
|
||||
|
@ -150,9 +150,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout branch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: '17'
|
||||
|
|
|
@ -58,11 +58,11 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# skip the "cache: maven" step from setup-java. We explicitly use a
|
||||
# different cache key since we cannot reuse it across commits.
|
||||
- uses: actions/setup-java@v3
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: ${{ matrix.jdk }}
|
||||
|
@ -71,7 +71,7 @@ jobs:
|
|||
# we include github.sha in the cache key to make it specific to that build/jdk
|
||||
- name: Cache Maven m2 repository
|
||||
id: maven
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: maven-${{ runner.os }}-${{ matrix.jdk }}-${{ github.sha }}
|
||||
|
@ -79,7 +79,7 @@ jobs:
|
|||
|
||||
- name: Cache targets
|
||||
id: target
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
./**/target
|
||||
|
@ -87,7 +87,7 @@ jobs:
|
|||
|
||||
- name: Cache image
|
||||
id: docker_container
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
key: druid-container-jdk${{ matrix.jdk }}.tar.gz-${{ github.sha }}
|
||||
path: |
|
||||
|
|
|
@ -54,7 +54,7 @@ jobs:
|
|||
# run everything if not a PR
|
||||
core: ${{ steps.filter.outputs.core || github.event_name != 'pull_request'}}
|
||||
steps:
|
||||
- uses: dorny/paths-filter@v2
|
||||
- uses: dorny/paths-filter@v3
|
||||
if: github.event_name == 'pull_request'
|
||||
id: filter
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue