From 9e9c2fda31c0f20591dc294c0e611d3c45d739bd Mon Sep 17 00:00:00 2001 From: MUHAMMED AJMAL PK <61465738+ajmalpk23@users.noreply.github.com> Date: Tue, 8 Nov 2022 13:28:20 +0530 Subject: [PATCH] integrating test case integrating test case --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f2072cd..2ccee0e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,3 +39,29 @@ jobs: with: name: app path: app/build/outputs/apk/debug/app-debug.apk +test: + runs-on: macos-latest # or any other machine + steps: + ... + - name: Unit Test + run: ./gradlew testDebugUnitTest + + - name: Upload Test Reports Folder + uses: actions/upload-artifact@v2 + if: ${{ always() }} # IMPORTANT: Upload reports regardless of status + with: + name: reports + path: app/build/test-results # path to where the xml test results are stored + + report: + runs-on: ubuntu-latest + needs: test # The report job will run after test job + if: ${{ always() }} # IMPORTANT: Execute report job regardless of status + steps: + - name: Download Test Reports Folder + uses: actions/download-artifact@v2 + with: + name: reports + + - name: Android Test Report + uses: asadmansr/android-test-report-action@v1.2.0