Skip to content

Commit

Permalink
update CI github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarek-Bohdima committed Oct 17, 2024
1 parent 94155f4 commit da24f2b
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/build_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit da24f2b

Please sign in to comment.