From 248a8956ee61f01f64da80940e1dd577f8f93e67 Mon Sep 17 00:00:00 2001 From: jrhee17 Date: Thu, 11 Apr 2024 16:58:16 +0900 Subject: [PATCH] Poc/gradle/periodic cache check (#35) * minimal impl * address comment by @ikhoon * bugfix * manually specify working directory * manually create working directory * use workflow by ge * address comments * add parameter * update location * test --- .github/workflows/gradle-cache-check.yml | 44 ++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/gradle-cache-check.yml diff --git a/.github/workflows/gradle-cache-check.yml b/.github/workflows/gradle-cache-check.yml new file mode 100644 index 00000000000..5c6bf5cdaab --- /dev/null +++ b/.github/workflows/gradle-cache-check.yml @@ -0,0 +1,44 @@ +name: Periodic Gradle Build Cache Check +on: + push: + branches: + - main + tags-ignore: + # The release versions will be verified by 'publish-release.yml' + - armeria-* + pull_request: + merge_group: + +env: + LC_ALL: "en_US.UTF-8" + GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} + +jobs: + build-cache-check: + if: github.repository == 'jrhee17/armeria' + runs-on: ubuntu-latest + steps: + - id: setup-jdk-19 + name: Set up JDK 19 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '19' + + - uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/download@actions-stable + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-1@actions-stable + with: + gitRepo: https://github.com/line/armeria.git + gitBranch: main + tasks: build + args: --parallel -Pretry=true -PfailOnPassedAfterRetry=false + + - uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable + with: + gitRepo: https://github.com/line/armeria.git + gitBranch: main + tasks: build + args: --parallel -PfailIfNotFullyCacheable=true -Pretry=true -PfailOnPassedAfterRetry=false