Skip to content

Commit 63d99a1

Browse files
use script
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent 31635ed commit 63d99a1

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/garm.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,16 @@ jobs:
9191
sdcard-path-or-size: 100M
9292
target: google_apis
9393
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -skin 500x833
94-
script: scripts/wait_for_emulator.sh && ./gradlew jacocoTestDebugUnitTestReport && ./gradlew installDebugAndroidTest && ./gradlew createDebugCoverageReport && ./gradlew combinedTestReport
94+
script: scripts/runTests.sh
9595

9696
- name: upload failing results
9797
if: ${{ failure() }}
9898
env:
99-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100-
run: scripts/uploadReport.sh "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" ${{github.event.number}} "${{ matrix.color }}-${{ matrix.scheme }}" "Screenshot" ${{github.event.number}}
99+
LOG_USERNAME: ${{ secrets.LOG_USERNAME }}
100+
LOG_PASSWORD: ${{ secrets.LOG_PASSWORD }}
101+
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
102+
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
103+
run: scripts/uploadReport.sh "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" ${{github.event.number}} "master" "IT" ${{github.event.number}} "${{ secrets.GIT_USERNAME }}" "${{ secrets.GIT_TOKEN }}"
101104
- name: Archive Espresso results
102105
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
103106
if: ${{ always() }}

scripts/runTests.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#
2+
# Nextcloud Android Library
3+
#
4+
# SPDX-FileCopyrightText: 2024 Tobias Kaminsky <[email protected]>
5+
# SPDX-License-Identifier: MIT
6+
#
7+
8+
scripts/wait_for_emulator.sh
9+
adb logcat -c
10+
adb logcat > logcat.txt &
11+
./gradlew jacocoTestDebugUnitTestReport
12+
./gradlew installDebugAndroidTest
13+
./gradlew createDebugCoverageReport
14+
./gradlew combinedTestReport

0 commit comments

Comments
 (0)