Unit test and E2E test updated #241
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Unit Tests for Android | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ develop, main ] | |
jobs: | |
test-android: | |
name: Test Android | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Bundler | |
run: | | |
bundle config --local path ./vendor/bundle | |
bundle config --local deployment true | |
bundle install | |
- name: Setup Config | |
env: | |
custom_config: ${{ secrets.SECRETS }} | |
if: ${{ env.custom_config != '' }} | |
run: | | |
base64 -d <<< ${{ env.custom_config }} > custom.properties | |
- name: Ensure config files exist | |
run: | | |
touch custom.properties | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Run Unit Tests | |
run: | | |
./gradlew testDebugUnitTestCoverage | |
- name: Upload test results | |
uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: test-results | |
path: app/build/reports/jacoco/testDebugUnitTestCoverage/html/index.html | |
retention-days: 1 |