From 491f405e32fbc17df3bcd06774afbf1f6f18165a Mon Sep 17 00:00:00 2001 From: ankitkumar Date: Wed, 17 Jan 2024 01:06:23 +0530 Subject: [PATCH 1/2] added ut check --- .github/workflows/verify-build.yml | 50 +++++++++++++++--------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/verify-build.yml b/.github/workflows/verify-build.yml index 1d4d0d7f..63649b24 100644 --- a/.github/workflows/verify-build.yml +++ b/.github/workflows/verify-build.yml @@ -23,31 +23,31 @@ jobs: name: lint-results path: app/build/reports/lint-results-debug.html -# unit-test: -# needs: [lint] -# runs-on: ubuntu-latest -# steps: -# - name: Checkout the code -# uses: actions/checkout@v2 -# -# - name: Run tests -# run: ./gradlew test -# -# - name: Upload test report -# uses: actions/upload-artifact@v2 -# with: -# name: unit_test_report -# path: app/build/reports/tests/testDebugUnitTest/ -# -# instrumentation-test: -# needs: [unit-test] -# runs-on: macos-latest -# steps: -# - name: Checkout the code -# uses: actions/checkout@v2 -# -# - name: Run espresso tests -# uses: reactivecircus/android-emulator-runner@v2 + unit-test: + needs: [ lint ] + runs-on: ubuntu-latest + steps: + - name: Checkout the code + uses: actions/checkout@v2 + + - name: Run tests + run: ./gradlew test + + - name: Upload test report + uses: actions/upload-artifact@v2 + with: + name: unit_test_report + path: app/build/reports/tests/testDebugUnitTest/ + # + # instrumentation-test: + # needs: [unit-test] + # runs-on: macos-latest + # steps: + # - name: Checkout the code + # uses: actions/checkout@v2 + # + # - name: Run espresso tests + # uses: reactivecircus/android-emulator-runner@v2 # with: # api-level: 29 # script: ./gradlew connectedCheck From 2bf5df4e0d6ac5c4e2cf3648051762781068be5a Mon Sep 17 00:00:00 2001 From: ankitkumar Date: Wed, 17 Jan 2024 01:11:25 +0530 Subject: [PATCH 2/2] added ut check --- .github/workflows/verify-build.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/verify-build.yml b/.github/workflows/verify-build.yml index 63649b24..6576f9cc 100644 --- a/.github/workflows/verify-build.yml +++ b/.github/workflows/verify-build.yml @@ -24,7 +24,7 @@ jobs: path: app/build/reports/lint-results-debug.html unit-test: - needs: [ lint ] +# needs: [ lint ] runs-on: ubuntu-latest steps: - name: Checkout the code @@ -38,7 +38,7 @@ jobs: with: name: unit_test_report path: app/build/reports/tests/testDebugUnitTest/ - # + # instrumentation-test: # needs: [unit-test] # runs-on: macos-latest @@ -48,15 +48,15 @@ jobs: # # - name: Run espresso tests # uses: reactivecircus/android-emulator-runner@v2 -# with: -# api-level: 29 -# script: ./gradlew connectedCheck -# -# - name: Upload test report -# uses: actions/upload-artifact@v2 -# with: -# name: instrumentation_test_report -# path: app/build/reports/androidTests/connected/ + # with: + # api-level: 29 + # script: ./gradlew connectedCheck + # + # - name: Upload test report + # uses: actions/upload-artifact@v2 + # with: + # name: instrumentation_test_report + # path: app/build/reports/androidTests/connected/ static-code-analysis: # needs: [instrumentation-test]