From 65accbbd6deb7b772299421a982d309feed6537a Mon Sep 17 00:00:00 2001 From: Tyler Bertrand Date: Tue, 27 Aug 2024 15:17:26 -0500 Subject: [PATCH] Add Morphia workflow Don't enable on push --- .github/workflows/run-experiments-morphia.yml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/run-experiments-morphia.yml diff --git a/.github/workflows/run-experiments-morphia.yml b/.github/workflows/run-experiments-morphia.yml new file mode 100644 index 0000000..11f5457 --- /dev/null +++ b/.github/workflows/run-experiments-morphia.yml @@ -0,0 +1,52 @@ +name: Morphia + +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/MorphiaOrg/morphia" + GOALS: "install" + +jobs: + Experiment: + strategy: + fail-fast: false + matrix: + include: + - experimentId: 1 + - experimentId: 2 + runs-on: ubuntu-latest + steps: + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: 21 + distribution: "temurin" + - name: Download latest version of the validation scripts + uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/maven/download@actions-stable + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: Run experiment 1 + uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/maven/experiment-1@actions-stable + env: + DEVELOCITY_ACCESS_KEY: "${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}" + with: + gitRepo: ${{ env.GIT_REPO }} + goals: ${{ env.GOALS }} + gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }} + failIfNotFullyCacheable: true + if: matrix.experimentId == 1 + - name: Run experiment 2 + uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/maven/experiment-2@actions-stable + env: + DEVELOCITY_ACCESS_KEY: "${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}" + with: + gitRepo: ${{ env.GIT_REPO }} + goals: ${{ env.GOALS }} + gradleEnterpriseUrl: ${{ env.GRADLE_ENTERPRISE_URL }} + failIfNotFullyCacheable: true + if: matrix.experimentId == 2