Skip to content

Commit

Permalink
Added CI github action
Browse files Browse the repository at this point in the history
Updated java version
  • Loading branch information
manununhez committed Apr 9, 2024
1 parent f66942b commit 0ef03cb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci-android.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Android CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "feature/**", "epic/**", "release/**" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout project sources
uses: actions/checkout@v3

- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Build with Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
arguments: compileDebugSources --no-configuration-cache -Pnapt=true

- name: Run Unit Tests
run: ./gradlew testDebugUnitTest --no-configuration-cache -Pnapt=true
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
}
}

Expand Down

0 comments on commit 0ef03cb

Please sign in to comment.