@@ -8,6 +8,9 @@ concurrency:
8
8
jobs :
9
9
test-apk :
10
10
runs-on : ubuntu-latest
11
+ needs :
12
+ - fetch-test-apk-old
13
+ - fetch-test-apk-new
11
14
name : Run diffuse action (part 1)
12
15
steps :
13
16
- uses : actions/checkout@v4
@@ -17,11 +20,13 @@ jobs:
17
20
distribution : temurin
18
21
java-version : 21
19
22
20
- - name : Get old version of Android Auto app for test purposes
21
- run : wget "https://github.com/usefulness/storage/raw/master/android-auto-old.apk" -O old-apk.apk
23
+ - uses : actions/download-artifact@v4
24
+ with :
25
+ name : old-apk
22
26
23
- - name : Get new version of Android Auto app for test purposes
24
- run : wget "https://github.com/usefulness/storage/raw/master/android-auto-new.apk" -O new-apk.apk
27
+ - uses : actions/download-artifact@v4
28
+ with :
29
+ name : new-apk
25
30
26
31
- id : diffuse
27
32
uses : ./
78
83
79
84
test-apk-2 :
80
85
runs-on : ubuntu-latest
86
+ needs :
87
+ - fetch-test-apk-very-old
88
+ - fetch-test-apk-new
81
89
name : Run diffuse action (part 2)
82
90
steps :
83
91
- uses : actions/checkout@v4
@@ -87,11 +95,15 @@ jobs:
87
95
distribution : temurin
88
96
java-version : 21
89
97
90
- - name : Get very old version of Android Auto app for test purposes
91
- run : wget "https://github.com/usefulness/storage/raw/master/android-auto-very-old.apk" -O very-old-apk.apk
98
+ - uses : actions/download-artifact@v4
99
+ with :
100
+ name : very-old-apk
92
101
93
- - name : Get new version of Android Auto app for test purposes
94
- run : wget "https://github.com/usefulness/storage/raw/master/android-auto-new.apk" -O new-apk.apk
102
+ - uses : actions/download-artifact@v4
103
+ with :
104
+ name : new-apk
105
+
106
+ - run : ls -al
95
107
96
108
- id : diffuse
97
109
uses : ./
@@ -146,8 +158,47 @@ jobs:
146
158
name : diffuse-output-2
147
159
path : ${{ steps.diffuse.outputs.diff-file }}
148
160
161
+ fetch-test-apk-very-old :
162
+ runs-on : ubuntu-latest
163
+ steps :
164
+ - name : Get very old version of Android Auto app for test purposes
165
+ run : wget "https://github.com/usefulness/storage/raw/master/android-auto-very-old.apk" -O very-old-apk.apk
166
+
167
+ - uses : actions/upload-artifact@v4
168
+ with :
169
+ name : very-old-apk
170
+ path : very-old-apk.apk
171
+ retention-days : 1
172
+
173
+ fetch-test-apk-old :
174
+ runs-on : ubuntu-latest
175
+ steps :
176
+ - name : Get old version of Android Auto app for test purposes
177
+ run : wget "https://github.com/usefulness/storage/raw/master/android-auto-old.apk" -O old-apk.apk
178
+
179
+ - uses : actions/upload-artifact@v4
180
+ with :
181
+ name : old-apk
182
+ path : old-apk.apk
183
+ retention-days : 1
184
+
185
+ fetch-test-apk-new :
186
+ runs-on : ubuntu-latest
187
+ steps :
188
+ - name : Get new version of Android Auto app for test purposes
189
+ run : wget "https://github.com/usefulness/storage/raw/master/android-auto-new.apk" -O new-apk.apk
190
+
191
+ - uses : actions/upload-artifact@v4
192
+ with :
193
+ name : new-apk
194
+ path : new-apk.apk
195
+ retention-days : 1
196
+
149
197
smoke-test :
150
198
runs-on : ${{ matrix.os }}
199
+ needs :
200
+ - fetch-test-apk-very-old
201
+ - fetch-test-apk-new
151
202
strategy :
152
203
fail-fast : false
153
204
matrix :
@@ -160,17 +211,15 @@ jobs:
160
211
distribution : temurin
161
212
java-version : 21
162
213
163
- - run : python3 -m pip install requests
164
- shell : bash
165
-
166
- - name : Get Android Auto app APKs for test purposes
167
- run : |
168
- import requests
169
- responseOld = requests.get("https://github.com/usefulness/storage/raw/master/android-auto-very-old.apk")
170
- open("very-old-apk.apk", "wb").write(responseOld.content)
171
- responseNew = requests.get("https://github.com/usefulness/storage/raw/master/android-auto-new.apk")
172
- open("new-apk.apk", "wb").write(responseNew.content)
173
- shell : python
214
+ - uses : actions/download-artifact@v4
215
+ with :
216
+ name : very-old-apk
217
+
218
+ - uses : actions/download-artifact@v4
219
+ with :
220
+ name : new-apk
221
+
222
+ - run : ls -al
174
223
175
224
- id : diffuse-custom-repo-hardcoded
176
225
uses : ./
0 commit comments