File tree Expand file tree Collapse file tree 2 files changed +46
-29
lines changed Expand file tree Collapse file tree 2 files changed +46
-29
lines changed Original file line number Diff line number Diff line change
1
+ name : android-publish-artifact
2
+
3
+ on :
4
+ push :
5
+ branches : [ develop ]
6
+ pull_request :
7
+ branches :
8
+ - develop
9
+ paths-ignore :
10
+ - " app/src/main/**"
11
+
12
+ permissions :
13
+ checks : write
14
+
15
+ jobs :
16
+ publish :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ - uses : gradle/wrapper-validation-action@v3
21
+ - name : set up JDK 17
22
+ uses : actions/setup-java@v4
23
+ with :
24
+ java-version : ' 17'
25
+ distribution : ' adopt'
26
+ - name : Wait for tests to succeed
27
+
28
+ with :
29
+ ref : ${{ github.ref }}
30
+ running-workflow-name : android-publish-artifact
31
+ check-name : android-unit-test
32
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
33
+ wait-interval : 20
34
+ - uses : gradle/actions/setup-gradle@v3
35
+ - name : Grant execute permission for gradlew
36
+ run : chmod +x gradlew
37
+ - name : Publish to local maven
38
+ run : |
39
+ ./gradlew build publishMavenPublicationToMavenLocal
40
+ - name : Upload artifacts
41
+ uses : actions/upload-artifact@v3
42
+ with :
43
+ name : publications
44
+ path : ~/.m2/repository/io/wax911/emoji/
Original file line number Diff line number Diff line change 1
- name : android-test
1
+ name : android-unit- test
2
2
3
3
on :
4
4
push :
17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- uses : actions/checkout@v4
20
+ - uses : gradle/actions/setup-gradle@v3
20
21
- uses : gradle/wrapper-validation-action@v3
21
22
- name : set up JDK 17
22
23
uses : actions/setup-java@v4
35
36
if : always() # always run even if the previous step fails
36
37
with :
37
38
report_paths : ' **/build/test-results/**/TEST-*.xml'
38
-
39
- instrumented :
40
- runs-on : macos-latest
41
- strategy :
42
- fail-fast : false
43
- matrix :
44
- api-level :
45
- - 23
46
- steps :
47
- - uses : actions/checkout@v4
48
- - uses : gradle/wrapper-validation-action@v3
49
- - uses : actions/setup-java@v4
50
- with :
51
- java-version : ' 17'
52
- distribution : ' adopt'
53
- - uses : gradle/gradle-build-action@v3
54
- - name : Run Tests
55
- uses : reactivecircus/android-emulator-runner@v2
56
- with :
57
- api-level : ${{ matrix.api-level }}
58
- script : ./gradlew connectedCheck
59
- env :
60
- API_LEVEL : ${{ matrix.api-level }}
61
- - name : Publish Integrated Test Report
62
- uses : mikepenz/action-junit-report@v4
63
- if : always() # always run even if the previous step fails
64
- with :
65
- report_paths : ' **/build/androidTest-results/**/TEST-*.xml'
You can’t perform that action at this time.
0 commit comments