8
8
- ' main'
9
9
- ' release/**'
10
10
- ' dev/**' # Allow running tests on dev branches without a PR
11
+ paths-ignore :
12
+ - ' dist/**'
13
+
14
+ permissions :
15
+ contents : write
11
16
12
17
concurrency :
13
- group : integ-tests -${{ github.ref }}
18
+ group : integ-test -${{ github.ref }}
14
19
cancel-in-progress : false
15
20
16
21
jobs :
17
- determine-suite :
18
- runs-on : ubuntu-latest
19
- outputs :
20
- runner-os : ${{ steps.determine-suite.outputs.suite == 'quick' && '["ubuntu-latest"]' || '["ubuntu-latest", "windows-latest", "macos-latest"]' }}
21
- suite : ${{ steps.determine-suite.outputs.suite }}
22
- steps :
23
- - name : Determine suite to run
24
- id : determine-suite
25
- run : |
26
- # Always run quick suite if we are not in the core `gradle/actions` repository
27
- # This reduces the load for developers working on 'main' on forks
28
- if [ "${{ github.repository }}" != "gradle/actions" ]; then
29
- echo "Not in core repository: suite=quick"
30
- echo "suite=quick" >> "$GITHUB_OUTPUT"
31
- exit 0
32
- fi
33
-
34
- # Run full suite for push trigger with "[bot] Update dist directory" commit message
35
- if [ "${{ github.event.head_commit.message }}" == "[bot] Update dist directory" ]; then
36
- echo "Bot commit to main branch: suite=full"
37
- echo "suite=full" >> "$GITHUB_OUTPUT"
38
- exit 0
39
- fi
40
-
41
- # Run quick suite for everything else
42
- echo "Everything else: suite=quick"
43
- echo "suite=quick" >> "$GITHUB_OUTPUT"
44
-
45
22
build-distribution :
46
- needs : [determine-suite]
47
23
runs-on : ubuntu-latest
48
24
steps :
49
25
- name : Checkout sources
@@ -52,125 +28,16 @@ jobs:
52
28
if : ${{ needs.determine-suite.outputs.suite != 'full' }}
53
29
uses : ./.github/actions/build-dist
54
30
55
- build-scan-publish :
56
- needs : [determine-suite, build-distribution]
57
- uses : ./.github/workflows/integ-test-build-scan-publish.yml
58
- with :
59
- runner-os : ' ${{ needs.determine-suite.outputs.runner-os }}'
60
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
61
-
62
- cache-cleanup :
63
- needs : [determine-suite, build-distribution]
64
- uses : ./.github/workflows/integ-test-cache-cleanup.yml
65
- with :
66
- runner-os : ' ${{ needs.determine-suite.outputs.runner-os }}'
67
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
68
-
69
- caching-config :
70
- needs : [determine-suite, build-distribution]
71
- uses : ./.github/workflows/integ-test-caching-config.yml
72
- with :
73
- runner-os : ' ${{ needs.determine-suite.outputs.runner-os }}'
74
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
75
-
76
- dependency-graph :
77
- if : ${{ ! github.event.pull_request.head.repo.fork }}
78
- needs : [determine-suite, build-distribution]
79
- uses : ./.github/workflows/integ-test-dependency-graph.yml
80
- permissions :
81
- contents : write
82
- with :
83
- runner-os : ' ${{ needs.determine-suite.outputs.runner-os }}'
84
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
85
-
86
- dependency-submission :
87
- if : ${{ ! github.event.pull_request.head.repo.fork }}
88
- needs : [determine-suite, build-distribution]
89
- uses : ./.github/workflows/integ-test-dependency-submission.yml
90
- permissions :
91
- contents : write
92
- with :
93
- runner-os : ' ${{ needs.determine-suite.outputs.runner-os }}'
94
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
95
-
96
- dependency-submission-failures :
97
- if : ${{ ! github.event.pull_request.head.repo.fork }}
98
- needs : [determine-suite, build-distribution]
99
- uses : ./.github/workflows/integ-test-dependency-submission-failures.yml
100
- permissions :
101
- contents : write
102
- with :
103
- runner-os : ' ${{ needs.determine-suite.outputs.runner-os }}'
104
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
105
-
106
- develocity-injection :
107
- if : ${{ ! github.event.pull_request.head.repo.fork }}
108
- needs : [determine-suite, build-distribution]
109
- uses : ./.github/workflows/integ-test-inject-develocity.yml
110
- with :
111
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
112
- secrets :
113
- DEVELOCITY_ACCESS_KEY : ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
114
-
115
- provision-gradle-versions :
116
- needs : [determine-suite, build-distribution]
117
- uses : ./.github/workflows/integ-test-provision-gradle-versions.yml
118
- with :
119
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
120
-
121
- restore-configuration-cache :
122
- if : ${{ ! github.event.pull_request.head.repo.fork }}
123
- needs : [determine-suite, build-distribution]
124
- uses : ./.github/workflows/integ-test-restore-configuration-cache.yml
125
- with :
126
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
127
- secrets :
128
- GRADLE_ENCRYPTION_KEY : ${{ secrets.GRADLE_ENCRYPTION_KEY }}
129
-
130
- restore-containerized-gradle-home :
131
- needs : [determine-suite, build-distribution]
132
- uses : ./.github/workflows/integ-test-restore-containerized-gradle-home.yml
133
- with :
134
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
135
-
136
- restore-custom-gradle-home :
137
- needs : [determine-suite, build-distribution]
138
- uses : ./.github/workflows/integ-test-restore-custom-gradle-home.yml
139
- with :
140
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
141
-
142
- restore-gradle-home :
143
- needs : [determine-suite, build-distribution]
144
- uses : ./.github/workflows/integ-test-restore-gradle-home.yml
145
- with :
146
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
147
-
148
- restore-java-toolchain :
149
- needs : [determine-suite, build-distribution]
150
- uses : ./.github/workflows/integ-test-restore-java-toolchain.yml
151
- with :
152
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
153
-
154
- sample-kotlin-dsl :
155
- needs : [determine-suite, build-distribution]
156
- uses : ./.github/workflows/integ-test-sample-kotlin-dsl.yml
157
- with :
158
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
159
-
160
- sample-gradle-plugin :
161
- needs : [determine-suite, build-distribution]
162
- uses : ./.github/workflows/integ-test-sample-gradle-plugin.yml
163
- with :
164
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
165
-
166
- toolchain-detection :
167
- needs : [determine-suite, build-distribution]
168
- uses : ./.github/workflows/integ-test-detect-toolchains.yml
31
+ caching-integ-tests :
32
+ needs : build-distribution
33
+ uses : ./.github/workflows/suite-integ-test-caching.yml
169
34
with :
170
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
35
+ skip-dist : false
36
+ secrets : inherit
171
37
172
- wrapper-validation :
173
- needs : [determine-suite, build-distribution]
174
- uses : ./.github/workflows/integ-test-wrapper-validation .yml
38
+ other-integ-tests :
39
+ needs : build-distribution
40
+ uses : ./.github/workflows/suite- integ-test-other .yml
175
41
with :
176
- skip-dist : ${{ needs.determine-suite.outputs.suite == 'full' }}
42
+ skip-dist : false
43
+ secrets : inherit
0 commit comments