diff --git a/.github/workflows/build_pull_request.yml b/.github/workflows/build_pull_request.yml index a655538..87ae7cc 100644 --- a/.github/workflows/build_pull_request.yml +++ b/.github/workflows/build_pull_request.yml @@ -7,22 +7,23 @@ on: jobs: build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 - - - name: Set up JDK 11 - uses: actions/setup-java@v3 + with: + fetch-depth: 0 # Force clean checkout + - uses: actions/setup-java@v3 with: java-version: '11' distribution: 'temurin' - cache: 'gradle'# Add Gradle caching to the setup-java action - + cache: 'gradle' - name: Grant execute permission for gradlew run: chmod +x ./gradlew - + - name: List gradle wrapper directory + - run: ls -l gradle/wrapper + - name: + Download Gradle Wrapper JAR # Add this step if needed + run: | + mkdir -p gradle/wrapper + curl -L https://services.gradle.org/distributions/gradle-8.5-bin.zip/gradle-8.5/lib/gradle-wrapper-8.5.jar -o gradle/wrapper/gradle-wrapper.jar - name: Build debug APK run: ./gradlew assembleDebug - - - name: Run unit tests - run: ./gradlew test