Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit c3ac1a3

Browse files
committed
Removes cache from NavAdv
1 parent 3dca680 commit c3ac1a3

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/NavigationAdvancedSample.yaml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
~/.gradle/caches/modules-*
4343
~/.gradle/caches/jars-*
4444
~/.gradle/caches/build-cache-*
45-
key: gradle-${{ hashFiles('checksum.txt') }}
45+
key: navadv-${{ hashFiles('checksum.txt') }}
4646

4747
- name: Build project
4848
working-directory: ${{ env.SAMPLE_PATH }}
@@ -58,11 +58,9 @@ jobs:
5858
disable-animations: true
5959
working-directory: ${{ env.SAMPLE_PATH }}
6060
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
6664
6765
- name: Upload build outputs (APKs)
6866
uses: actions/upload-artifact@v3
@@ -76,14 +74,3 @@ jobs:
7674
with:
7775
name: build-reports-NavigationAdvancedSample
7876
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

0 commit comments

Comments
 (0)