Cache gradle wrapper (#3363)
This commit is contained in:
parent
7d5c7e0a4a
commit
19a650027a
|
@ -28,6 +28,12 @@ jobs:
|
|||
with:
|
||||
job-id: grpc-smoke
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Login to GitHub Package Registry
|
||||
uses: docker/login-action@v1.9.0
|
||||
with:
|
||||
|
|
|
@ -28,6 +28,12 @@ jobs:
|
|||
with:
|
||||
job-id: play-smoke
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Login to GitHub Package Registry
|
||||
uses: docker/login-action@v1.9.0
|
||||
with:
|
||||
|
|
|
@ -27,6 +27,12 @@ jobs:
|
|||
with:
|
||||
job-id: fakebackend-smoke
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Login to GitHub Package Registry
|
||||
uses: docker/login-action@v1.9.0
|
||||
with:
|
||||
|
@ -65,6 +71,12 @@ jobs:
|
|||
with:
|
||||
job-id: fakebackend-smoke
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Login to GitHub Package Registry
|
||||
uses: azure/docker-login@v1
|
||||
with:
|
||||
|
|
|
@ -28,6 +28,12 @@ jobs:
|
|||
with:
|
||||
job-id: springboot-smoke
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Login to GitHub Package Registry
|
||||
uses: docker/login-action@v1.9.0
|
||||
with:
|
||||
|
|
|
@ -27,6 +27,12 @@ jobs:
|
|||
with:
|
||||
job-id: matrix-smoke
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Login to GitHub Package Registry
|
||||
uses: docker/login-action@v1.9.0
|
||||
with:
|
||||
|
@ -65,6 +71,12 @@ jobs:
|
|||
with:
|
||||
job-id: matrix-smoke
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Login to GitHub Package Registry
|
||||
uses: azure/docker-login@v1
|
||||
with:
|
||||
|
|
|
@ -25,6 +25,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
|
||||
|
@ -60,6 +66,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk${{ matrix.java }}
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
env:
|
||||
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
|
||||
|
@ -84,6 +96,12 @@ jobs:
|
|||
with:
|
||||
job-id: latestDepTest
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
env:
|
||||
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
|
||||
|
@ -117,6 +135,12 @@ jobs:
|
|||
with:
|
||||
job-id: smokeTests
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
env:
|
||||
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
|
||||
|
@ -141,6 +165,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Build
|
||||
run: ./gradlew build --stacktrace
|
||||
working-directory: examples/distro
|
||||
|
@ -164,6 +194,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Publish snapshot
|
||||
env:
|
||||
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
|
||||
|
|
|
@ -20,6 +20,12 @@ jobs:
|
|||
distribution: adopt
|
||||
java-version: 11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Build
|
||||
run: ./gradlew build --stacktrace -x :smoke-tests:test --no-build-cache
|
||||
|
||||
|
@ -47,6 +53,12 @@ jobs:
|
|||
distribution: adopt
|
||||
java-version: 11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
run: ./gradlew test -PtestJavaVersion=${{ matrix.java }} --stacktrace -x :smoke-tests:test -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false --no-build-cache
|
||||
|
||||
|
@ -63,6 +75,12 @@ jobs:
|
|||
distribution: adopt
|
||||
java-version: 11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
run: ./gradlew test -x :smoke-tests:test -PtestLatestDeps=true --stacktrace --no-build-cache
|
||||
|
||||
|
@ -88,6 +106,12 @@ jobs:
|
|||
distribution: adopt
|
||||
java-version: 11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }} --no-build-cache
|
||||
|
||||
|
@ -104,6 +128,12 @@ jobs:
|
|||
distribution: adopt
|
||||
java-version: 11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Build
|
||||
run: ./gradlew build --stacktrace --no-build-cache
|
||||
working-directory: examples/distro
|
||||
|
|
|
@ -25,6 +25,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
|
||||
|
@ -60,6 +66,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk${{ matrix.java }}
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
env:
|
||||
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
|
||||
|
@ -84,6 +96,12 @@ jobs:
|
|||
with:
|
||||
job-id: latestDepTest
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
env:
|
||||
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
|
||||
|
@ -117,6 +135,12 @@ jobs:
|
|||
with:
|
||||
job-id: smokeTests
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
env:
|
||||
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
|
||||
|
@ -141,6 +165,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Build
|
||||
run: ./gradlew build --stacktrace
|
||||
working-directory: examples/distro
|
||||
|
|
|
@ -77,6 +77,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk${{ matrix.java }}
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
run: ./gradlew test -PtestJavaVersion=${{ matrix.java }} --stacktrace -x :smoke-tests:test -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false
|
||||
|
||||
|
@ -113,6 +119,12 @@ jobs:
|
|||
with:
|
||||
job-id: smokeTests
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
|
||||
|
||||
|
@ -136,6 +148,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Build
|
||||
run: ./gradlew build --stacktrace
|
||||
working-directory: examples/distro
|
||||
|
|
|
@ -25,6 +25,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Start deadlock detector
|
||||
run: .github/scripts/deadlock-detector.sh
|
||||
|
||||
|
@ -68,6 +74,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk${{ matrix.java }}
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Start deadlock detector
|
||||
run: .github/scripts/deadlock-detector.sh
|
||||
|
||||
|
@ -116,6 +128,12 @@ jobs:
|
|||
with:
|
||||
job-id: smokeTests
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
|
||||
|
||||
|
@ -135,6 +153,12 @@ jobs:
|
|||
distribution: adopt
|
||||
java-version: 11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- id: set-matrix
|
||||
run: echo "::set-output name=matrix::{\"module\":[\"$(./gradlew -q instrumentation:listInstrumentations | xargs echo | sed 's/ /","/g')\"]}"
|
||||
|
||||
|
@ -156,6 +180,12 @@ jobs:
|
|||
distribution: adopt
|
||||
java-version: 11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Run muzzle
|
||||
# using retry because of sporadic gradle download failures
|
||||
uses: nick-invision/retry@v2.4.1
|
||||
|
@ -183,6 +213,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Build
|
||||
run: ./gradlew build --stacktrace
|
||||
working-directory: examples/distro
|
||||
|
|
|
@ -36,6 +36,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk${{ matrix.java }}
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
run: ./gradlew test -PtestJavaVersion=${{ matrix.java }} --stacktrace -x :smoke-tests:test -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false
|
||||
|
||||
|
@ -70,6 +76,12 @@ jobs:
|
|||
with:
|
||||
job-id: smokeTests
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Test
|
||||
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
|
||||
|
||||
|
@ -91,6 +103,12 @@ jobs:
|
|||
with:
|
||||
job-id: jdk11
|
||||
|
||||
- name: Cache Gradle Wrapper
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
- name: Build
|
||||
run: ./gradlew build --stacktrace
|
||||
working-directory: examples/distro
|
||||
|
|
Loading…
Reference in New Issue