Skip to content

Commit

Permalink
Poc/gradle/periodic cache check (#35)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jrhee17 authored Apr 11, 2024
1 parent 22f7089 commit 248a895
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/gradle-cache-check.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 248a895

Please sign in to comment.