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