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 8122c28 commit 94155f4
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions .github/workflows/build_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,23 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin' # Temurin is a reliable distribution of OpenJDK
steps:
- uses: actions/checkout@v3

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'gradle'# Add Gradle caching to the setup-java action

- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

- name: Build debug APK
run: ./gradlew assembleDebug
- name: Build debug APK
run: ./gradlew assembleDebug

- name: Run unit tests
run: ./gradlew test
- name: Run unit tests
run: ./gradlew test

0 comments on commit 94155f4

Please sign in to comment.