This repository was archived by the owner on Jan 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change 42
42
~/.gradle/caches/modules-*
43
43
~/.gradle/caches/jars-*
44
44
~/.gradle/caches/build-cache-*
45
- key : gradle -${{ hashFiles('checksum.txt') }}
45
+ key : navadv -${{ hashFiles('checksum.txt') }}
46
46
47
47
- name : Build project
48
48
working-directory : ${{ env.SAMPLE_PATH }}
58
58
disable-animations : true
59
59
working-directory : ${{ env.SAMPLE_PATH }}
60
60
script : |
61
- adb logcat -c # clear logs
62
- touch app/emulator.log # create log file
63
- chmod 777 app/emulator.log # allow writing to log file
64
- adb logcat >> app/emulator.log & # pipe all logcat messages into log file as a background process
65
- ./gradlew connectedCheck # here run your tests
61
+ adb logcat -c
62
+ adb logcat &
63
+ ./gradlew :presentation:connectedDebugAndroidTest
66
64
67
65
- name : Upload build outputs (APKs)
68
66
uses : actions/upload-artifact@v3
76
74
with :
77
75
name : build-reports-NavigationAdvancedSample
78
76
path : ${{ env.SAMPLE_PATH }}/app/build/reports
79
-
80
- - name : Upload Failing Test Report Log
81
- if : steps.testing.outcome != 'success' # upload the generated log on failure of the tests job
82
- uses : actions/upload-artifact@v2
83
- with :
84
- name : logs
85
- path : app/emulator.log # path to where the log is
86
-
87
- - name : Raise error on test fail # set a red tick on the workflow run if the tests failed
88
- if : steps.testing.outcome != 'success'
89
- run : exit 1
You can’t perform that action at this time.
0 commit comments