44jobs :
55 test-apk :
66 runs-on : ubuntu-latest
7- name : Run diffuse action
7+ name : Run diffuse action (part 1)
88 steps :
99 - uses : actions/checkout@v2
1010
@@ -30,18 +30,17 @@ jobs:
3030 id : find_comment
3131 with :
3232 issue-number : ${{ github.event.pull_request.number }}
33- body-includes : diffuse-smoke-test
33+ body-includes : diffuse-smoke-test-1
3434
3535 - uses : peter-evans/create-or-update-comment@v1
36- if : ${{ steps.diffuse.outputs.diff-raw != null || steps.find_comment.outputs.comment-id != null }}
3736 with :
3837 body : |
39- ### diffuse-smoke-test
38+ ### diffuse-smoke-test-1
4039
4140 `steps.diffuse.outputs.diff-gh-comment:`
4241 ${{ steps.diffuse.outputs.diff-gh-comment }}
4342
44- `steps.diffuse.outputs.summary`
43+ `steps.diffuse.outputs.summary`
4544 ```
4645 ${{ steps.diffuse.outputs.summary }}
4746 ```
@@ -55,14 +54,74 @@ jobs:
5554 ```
5655 ${{ steps.diffuse.outputs.dex }}
5756 ```
57+ edit-mode : replace
58+ comment-id : ${{ steps.find_comment.outputs.comment-id }}
59+ issue-number : ${{ github.event.pull_request.number }}
60+ token : ${{ secrets.GITHUB_TOKEN }}
61+
62+ - uses : actions/upload-artifact@v2
63+ with :
64+ name : diffuse-output-1
65+ path : ${{ steps.diffuse.outputs.diff-file }}
66+
67+ test-apk-2 :
68+ runs-on : ubuntu-latest
69+ name : Run diffuse action (part 2)
70+ steps :
71+ - uses : actions/checkout@v2
72+
73+ - name : set up JDK
74+ uses : actions/setup-java@v1
75+ with :
76+ java-version : 11
77+
78+ - name : Get very old version of Andorid Auto app for test purposes
79+ run : wget "https://github.com/usefulness/storage/raw/master/audroid-auto-very-old.apk" -O very-old-apk.apk
80+
81+ - name : Get new version of Andorid Auto app for test purposes
82+ run : wget "https://github.com/usefulness/storage/raw/master/android-auto-new.apk" -O new-apk.apk
83+
84+ - id : diffuse
85+ uses : ./
86+ with :
87+ old-file-path : very-old-apk.apk
88+ new-file-path : new-apk.apk
89+ debug : true
90+
91+ - uses : peter-evans/find-comment@v1
92+ id : find_comment
93+ with :
94+ issue-number : ${{ github.event.pull_request.number }}
95+ body-includes : diffuse-smoke-test-2
5896
59- (if visible the action works as expected)
97+ - uses : peter-evans/create-or-update-comment@v1
98+ with :
99+ body : |
100+ ### diffuse-smoke-test-2
101+
102+ `steps.diffuse.outputs.diff-gh-comment-no-dex:`
103+ ${{ steps.diffuse.outputs.diff-gh-comment-no-dex }}
104+
105+ `steps.diffuse.outputs.summary`
106+ ```
107+ ${{ steps.diffuse.outputs.summary }}
108+ ```
109+
110+ `steps.diffuse.outputs.manifest`
111+ ```
112+ ${{ steps.diffuse.outputs.manifest }}
113+ ```
114+
115+ `steps.diffuse.outputs.dex`
116+ ```
117+ ${{ steps.diffuse.outputs.dex }}
118+ ```
60119 edit-mode : replace
61120 comment-id : ${{ steps.find_comment.outputs.comment-id }}
62121 issue-number : ${{ github.event.pull_request.number }}
63122 token : ${{ secrets.GITHUB_TOKEN }}
64123
65124 - uses : actions/upload-artifact@v2
66125 with :
67- name : diffuse-output
126+ name : diffuse-output-2
68127 path : ${{ steps.diffuse.outputs.diff-file }}
0 commit comments