Make nightly-no-cache.yml send scans to GE
MODIFY
.github/workflows/nightly-no-cache.yml
.github/workflows/nightly-no-cache.yml
@@ -27,7 +27,11 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Build
- run: ./gradlew build --no-build-cache
+ env:
+ GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
+ uses: gradle/gradle-build-action@v2
+ with:
+ arguments: build --no-build-cache
build-gradle-plugins:
runs-on: ubuntu-latest
@@ -89,7 +93,11 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Test
- run: ./gradlew test -PtestJavaVersion=${{ matrix.test-java-version }} -PtestJavaVM=${{ matrix.vm }} -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false --no-build-cache
+ env:
+ GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
+ uses: gradle/gradle-build-action@v2
+ with:
+ arguments: test -PtestJavaVersion=${{ matrix.test-java-version }} -PtestJavaVM=${{ matrix.vm }} -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false --no-build-cache
testLatestDeps:
runs-on: ubuntu-latest
@@ -111,7 +119,11 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Test
- run: ./gradlew test -PtestLatestDeps=true --no-build-cache
+ env:
+ GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
+ uses: gradle/gradle-build-action@v2
+ with:
+ arguments: test -PtestLatestDeps=true --no-build-cache
smoke-test:
runs-on: ${{ matrix.os }}
@@ -155,7 +167,11 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Test
- run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.smoke-test-suite }} --no-build-cache
+ env:
+ GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
+ uses: gradle/gradle-build-action@v2
+ with:
+ arguments: :smoke-tests:test -PsmokeTestSuite=${{ matrix.smoke-test-suite }} --no-build-cache
# muzzle is intentionally not included in the nightly-no-cache build because
# it doesn't use gradle cache anyways and so is already covered by the normal nightly build

Make nightly-no-cache.yml send scans to GE (#5107)