Skip to content

Commit

Permalink
[22321] Updated github action workflow to support archiving of test r…
Browse files Browse the repository at this point in the history
…esults, included tripkit-android module
  • Loading branch information
sg-jsonjuliane committed Nov 6, 2024
1 parent c4f98f4 commit d67d118
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/android_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,6 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Create dummy keystore
run: |
keytool -genkeypair -alias mrwa -keyalg RSA -keystore /home/runner/work/traffic-wa-android/traffic-wa-android/mrwa.jks -keysize 2048 -validity 10000 -storepass dummypass -keypass dummypass -dname "CN=Dummy, OU=Dummy, O=Dummy, L=Dummy, S=Dummy, C=US"
- name: Create local.properties
run: |
echo "keystorePassword=dummypass" >> /home/runner/work/traffic-wa-android/traffic-wa-android/local.properties
echo "keystoreFile=/home/runner/work/traffic-wa-android/traffic-wa-android/mrwa.jks" >> /home/runner/work/traffic-wa-android/traffic-wa-android/local.properties
echo "googleMapsApiKey=dummyGoogleMapsApiKey" >> /home/runner/work/traffic-wa-android/traffic-wa-android/local.properties
echo "telemetryDeckAnalyticsKey=dummyTelemetryDeckKey" >> /home/runner/work/traffic-wa-android/traffic-wa-android/local.properties
- name: Build with Gradle
run: ./gradlew build

- name: Run unit tests
id: unit_tests
run: ./gradlew test
Expand All @@ -59,7 +45,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: test-results
path: build/test-results/test
path: ./*/build/test-results/**/test*UnitTest

- name: Comment on Pull Request for Unit Test Failures
if: failure() && github.event_name == 'pull_request' && steps.unit_tests.outcome == 'failure'
Expand Down
2 changes: 1 addition & 1 deletion tripkit-android
Submodule tripkit-android updated 822 files

0 comments on commit d67d118

Please sign in to comment.