From 336c09faf9a5ebb30885504f79c9d24a281d051f Mon Sep 17 00:00:00 2001 From: Janishar Ali Date: Wed, 24 Jan 2024 23:02:43 +0530 Subject: [PATCH] fix github action --- .github/workflows/android-unit-test.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/android-unit-test.yml b/.github/workflows/android-unit-test.yml index f371e3b..9c9c901 100644 --- a/.github/workflows/android-unit-test.yml +++ b/.github/workflows/android-unit-test.yml @@ -7,22 +7,28 @@ on: branches: [ "main" ] jobs: - test-feature: - runs-on: macOS-latest + build: - needs: build + runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4.1.0 + - name: Set up JDK 11 uses: actions/setup-java@v3.13.0 with: distribution: 'adopt' java-version: '18' - - name: Grant execute permissions for gradlew - run: chmod +x ./gradlew + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build and run unit tests + run: ./gradlew testDebug - - name: Run Tests with Gradle - run: ./gradlew test + - name: Upload test results + uses: actions/upload-artifact@v2 + with: + name: test-results + path: app/build/test-results