From e8b06a11e753b5d527f73c0967b28f40a8a404ea Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Fri, 10 Nov 2023 14:23:51 +0100 Subject: [PATCH] Added armeria experiment --- .github/workflows/run-experiments-armeria.yml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/run-experiments-armeria.yml diff --git a/.github/workflows/run-experiments-armeria.yml b/.github/workflows/run-experiments-armeria.yml new file mode 100644 index 0000000..e55e8c7 --- /dev/null +++ b/.github/workflows/run-experiments-armeria.yml @@ -0,0 +1,64 @@ +name: Armeria + +on: + schedule: + # Every Sunday at 9.00am + - cron: "0 9 * * 0" + + workflow_dispatch: + +env: + GRADLE_ENTERPRISE_URL: "https://ge.solutions-team.gradle.com" + GIT_REPO: "https://github.com/line/armeria" + TASKS: "build -Pretry=true -PfailOnPassedAfterRetry=false -PnoLint -PflakyTests=false -PbuildJdkVersion=19 -PtestJavaVersion=19" + +jobs: + Experiment: + + strategy: + matrix: + include: + - experimentId: 1 + - experimentId: 2 + - experimentId: 3 + + runs-on: ubuntu-latest + steps: + - name: Set up JDK 19 + uses: actions/setup-java@v3 + with: + java-version: 19 + distribution: "temurin" + - name: Download latest version of the validation scripts + uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/download@actions-stable + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: Run experiment 1 + uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-1@actions-stable + env: + GRADLE_ENTERPRISE_ACCESS_KEY: "${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }}" + with: + gitRepo: ${{ env.GIT_REPO }} + tasks: ${{ env.TASKS }} + gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }} + if: matrix.experimentId == 1 + - name: Run experiment 2 + uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-2@actions-stable + env: + GRADLE_ENTERPRISE_ACCESS_KEY: "${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }}" + with: + gitRepo: ${{ env.GIT_REPO }} + tasks: ${{ env.TASKS }} + gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }} + failIfNotFullyCacheable: true + if: matrix.experimentId == 2 + - name: Run experiment 3 + uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable + env: + GRADLE_ENTERPRISE_ACCESS_KEY: "${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }}" + with: + gitRepo: ${{ env.GIT_REPO }} + tasks: ${{ env.TASKS }} + gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }} + failIfNotFullyCacheable: true + if: matrix.experimentId == 3