Skip to content

[Quest/Malawi Core] Android App : Remove module tests #807

[Quest/Malawi Core] Android App : Remove module tests

[Quest/Malawi Core] Android App : Remove module tests #807

Workflow file for this run

name: CI MwCore
on:
push:
branches: [ mwcore-dev ]
pull_request:
branches: [ mwcore-dev ]
env:
FHIRCORE_USERNAME: ${{ secrets.FHIRCORE_USERNAME }}
FHIRCORE_ACCESS_TOKEN: ${{ secrets.FHIRCORE_ACCESS_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
engine-tests:
runs-on: macos-latest
steps:
- name: Cancel Previous workflow runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Decode google-services.json
run: echo $ENCODED_GOOGLE_SERVICES_JSON | base64 -d > android/quest/google-services.json
env:
ENCODED_GOOGLE_SERVICES_JSON: ${{ secrets.MWCORE_GOOGLE_SERVICES_JSON }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: android
- name: Spotless check engine module
run: ./gradlew :engine:spotlessCheck
working-directory: android
# - name: Run Engine unit tests with Gradle
# run: ./gradlew :engine:clean && ./gradlew :engine:jacocoTestReport -x :engine:testReleaseUnitTest --stacktrace
# working-directory: android
# - name: Upload Engine Test Report to codecov
# uses: codecov/codecov-action@v3
# with:
# working-directory: android
# flags: engine
# files: engine/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml
# fail_ci_if_error: true
# verbose: true
quest-tests:
runs-on: macos-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Decode google-services.json
run: echo $ENCODED_GOOGLE_SERVICES_JSON | base64 -d > android/quest/google-services.json
env:
ENCODED_GOOGLE_SERVICES_JSON: ${{ secrets.MWCORE_GOOGLE_SERVICES_JSON }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: android
- name: Spotless check quest application
run: ./gradlew :quest:spotlessCheck
working-directory: android
# - name: Run Quest unit tests with Gradle
# run: ./gradlew :quest:clean && ./gradlew :quest:jacocoTestReportMwcoreDebug -x :quest:testMwcoreReleaseUnitTest --stacktrace
# working-directory: android
# - name: Upload Quest Test Report to codecov
# uses: codecov/codecov-action@v3
# with:
# working-directory: android
# flags: quest
# files: quest/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml
# fail_ci_if_error: false
# verbose: true