-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (70 loc) · 2.82 KB
/
gradle-experiments.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: 🐘 Gradle experiments
on:
workflow_dispatch:
schedule:
- cron: "0 9 * * MON"
env:
DEVELOCITY_URL: "https://scans.gradle.com"
GIT_REPO: "https://github.com/SimonMarquis/SealedObjectInstances"
TASKS: "build -x spotlessCheck"
jobs:
build-cache-compatibility:
runs-on: ubuntu-latest
strategy:
matrix:
experiment: [1, 2, 3]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-java
- name: Download latest version of the validation scripts
uses: gradle/develocity-build-validation-scripts/.github/actions/gradle/download@f4b4a15ed96225ae1b6d3a09201a22f166f97fc5 # v2.7.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run experiment 1
if: matrix.experiment == 1
uses: gradle/develocity-build-validation-scripts/.github/actions/gradle/experiment-1@f4b4a15ed96225ae1b6d3a09201a22f166f97fc5 # v2.7.3
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
develocityUrl: ${{ env.DEVELOCITY_URL }}
- name: Run experiment 2
if: matrix.experiment == 2
uses: gradle/develocity-build-validation-scripts/.github/actions/gradle/experiment-2@f4b4a15ed96225ae1b6d3a09201a22f166f97fc5 # v2.7.3
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
develocityUrl: ${{ env.DEVELOCITY_URL }}
failIfNotFullyCacheable: true
- name: Run experiment 3
if: matrix.experiment == 3
uses: gradle/develocity-build-validation-scripts/.github/actions/gradle/experiment-3@f4b4a15ed96225ae1b6d3a09201a22f166f97fc5 # v2.7.3
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
develocityUrl: ${{ env.DEVELOCITY_URL }}
failIfNotFullyCacheable: true
- name: Upload build reports
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: "build-cache-compatibility-reports-${{ matrix.experiment }}"
path: |
build/reports/configuration-cache/**/*.html
build/reports/problems/problems-report.html
build-configuration-compatibility:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-java
- name: Run configuration cache experiment
uses: gradle/develocity-build-validation-scripts/.github/actions/gradle/experiment-config-cache@f4b4a15ed96225ae1b6d3a09201a22f166f97fc5 # v2.7.3
with:
tasks: ${{ env.TASKS }}
- name: Upload build reports
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: build-configuration-compatibility-reports
path: |
build/reports/configuration-cache/**/*.html
build/reports/problems/problems-report.html