Skip to content

ALMS-211 GitHub action for unit test case #7

ALMS-211 GitHub action for unit test case

ALMS-211 GitHub action for unit test case #7

Workflow file for this run

name: Run Unit Tests for Android
on:
workflow_dispatch:
pull_request:
branches: [ main ]
jobs:
test-android:
name: Test Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Run Unit Tests
run: |
./gradlew testDebugUnitTest
- name: Upload test results
uses: actions/upload-artifact@v2
if: always()
with:
name: test-results
path: library/build/reports/tests/testDebugUnitTest/
retention-days: 1