Apollo Kotlin #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Apollo Kotlin | |
on: | |
schedule: | |
# Every Sunday at 9.00am | |
- cron: "0 9 * * 0" | |
workflow_dispatch: | |
env: | |
DEVELOCITY_URL: "https://ge.solutions-team.gradle.com" | |
GIT_REPO: "https://github.com/apollographql/apollo-kotlin" | |
TASKS: "ciTestsGradle" | |
ARGS: "--no-configuration-cache" | |
jobs: | |
Experiment: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- experimentId: 1 | |
- experimentId: 2 | |
- experimentId: 3 | |
runs-on: macos-latest | |
steps: | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
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: Increase timeout when retrieving build scans | |
run: echo 'connect.timeout=PT90S' >> develocity-gradle-build-validation/network.settings && echo 'read.timeout=PT90S' >> develocity-gradle-build-validation/network.settings | |
- name: Run experiment 1 | |
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-1@actions-stable | |
env: | |
DEVELOCITY_ACCESS_KEY: "${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}" | |
with: | |
gitRepo: ${{ env.GIT_REPO }} | |
tasks: ${{ env.TASKS }} | |
args: ${{ env.ARGS }} | |
develocityUrl: ${{ env.DEVELOCITY_URL }} | |
if: matrix.experimentId == 1 | |
- name: Run experiment 2 | |
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-2@actions-stable | |
env: | |
DEVELOCITY_ACCESS_KEY: "${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}" | |
with: | |
gitRepo: ${{ env.GIT_REPO }} | |
tasks: ${{ env.TASKS }} | |
args: ${{ env.ARGS }} | |
develocityUrl: ${{ env.DEVELOCITY_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: | |
DEVELOCITY_ACCESS_KEY: "${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}" | |
with: | |
gitRepo: ${{ env.GIT_REPO }} | |
tasks: ${{ env.TASKS }} | |
args: ${{ env.ARGS }} | |
develocityUrl: ${{ env.DEVELOCITY_URL }} | |
failIfNotFullyCacheable: true | |
if: matrix.experimentId == 3 |