Skip to content

Commit 41c9e8f

Browse files
check
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
1 parent b8998f6 commit 41c9e8f

File tree

2 files changed

+42
-41
lines changed

2 files changed

+42
-41
lines changed

.github/workflows/android.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -49,45 +49,45 @@ jobs:
4949
~/.android/adb*
5050
key: avd-tablet-api-24
5151

52-
- name: Create AVD and generate snapshot for caching
53-
if: steps.avd-cache.outputs.cache-hit != 'true' && github.event_name != 'pull_request'
54-
uses: reactivecircus/android-emulator-runner@v2
55-
with:
56-
api-level: 24
57-
force-avd-creation: false
58-
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
59-
disable-animations: true
60-
script: echo "Generated AVD snapshot for caching."
61-
62-
- name: Run Instrumentation tests
63-
if: github.event_name != 'pull_request'
64-
uses: reactivecircus/android-emulator-runner@v2
65-
with:
66-
api-level: 24
67-
force-avd-creation: false
68-
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
69-
disable-animations: true
70-
profile: Nexus 10
71-
script: |
72-
adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
73-
adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0
74-
adb emu geo fix 37.422131 -122.084801
75-
./gradlew connectedBetaDebugAndroidTest --stacktrace
76-
77-
- name: Run Unit tests with unified coverage
78-
if: github.event_name != 'pull_request'
79-
run: ./gradlew -Pcoverage testBetaDebugUnitTestUnifiedCoverage --stacktrace
80-
81-
- name: Run Unit tests without unified coverage
82-
if: github.event_name == 'pull_request'
83-
run: ./gradlew -Pcoverage testBetaDebugUnitTestCoverage --stacktrace
84-
85-
- name: Upload Test Report to Codecov
86-
if: github.event_name != 'pull_request'
87-
run: |
88-
curl -Os https://uploader.codecov.io/latest/linux/codecov
89-
chmod +x codecov
90-
./codecov -f "app/build/reports/jacoco/testBetaDebugUnitTestUnifiedCoverage/testBetaDebugUnitTestUnifiedCoverage.xml" -Z
52+
# - name: Create AVD and generate snapshot for caching
53+
# if: steps.avd-cache.outputs.cache-hit != 'true' && github.event_name != 'pull_request'
54+
# uses: reactivecircus/android-emulator-runner@v2
55+
# with:
56+
# api-level: 24
57+
# force-avd-creation: false
58+
# emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
59+
# disable-animations: true
60+
# script: echo "Generated AVD snapshot for caching."
61+
#
62+
# - name: Run Instrumentation tests
63+
# if: github.event_name != 'pull_request'
64+
# uses: reactivecircus/android-emulator-runner@v2
65+
# with:
66+
# api-level: 24
67+
# force-avd-creation: false
68+
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
69+
# disable-animations: true
70+
# profile: Nexus 10
71+
# script: |
72+
# adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
73+
# adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0
74+
# adb emu geo fix 37.422131 -122.084801
75+
# ./gradlew connectedBetaDebugAndroidTest --stacktrace
76+
#
77+
# - name: Run Unit tests with unified coverage
78+
# if: github.event_name != 'pull_request'
79+
# run: ./gradlew -Pcoverage testBetaDebugUnitTestUnifiedCoverage --stacktrace
80+
#
81+
# - name: Run Unit tests without unified coverage
82+
# if: github.event_name == 'pull_request'
83+
# run: ./gradlew -Pcoverage testBetaDebugUnitTestCoverage --stacktrace
84+
#
85+
# - name: Upload Test Report to Codecov
86+
# if: github.event_name != 'pull_request'
87+
# run: |
88+
# curl -Os https://uploader.codecov.io/latest/linux/codecov
89+
# chmod +x codecov
90+
# ./codecov -f "app/build/reports/jacoco/testBetaDebugUnitTestUnifiedCoverage/testBetaDebugUnitTestUnifiedCoverage.xml" -Z
9191

9292
- name: Generate betaDebug APK
9393
run: bash ./gradlew assembleBetaDebug --stacktrace

.github/workflows/comment_artifacts_on_PR.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ jobs:
8282
console.log(`Deleted old comment ID: ${comment.id}`);
8383
};
8484
85-
const commentBody = `"✅ Generated APK variants!"!\n` +
85+
const commentBody = `✅ Generated APK variants!\n` +
8686
artifactsToLink.map(artifact => {
87-
return `- 🤖 [Download ${artifact.name}](${artifact.archive_download_url})`;
87+
const artifactUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${runId}/artifacts/${artifact.id}`;
88+
return `- 🤖 [Download ${artifact.name}](${artifactUrl})`;
8889
}).join('\n');
8990
9091
await github.rest.issues.createComment({

0 commit comments

Comments
 (0)