Skip to content

Commit 113b97d

Browse files
authored
Merge pull request #29 from grzesiek2010/improvedCi
Improved CI config file
2 parents 3763976 + bad755e commit 113b97d

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

.github/workflows/ci.yml

+10-12
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,20 @@ on:
99
jobs:
1010
build:
1111
name: Setup Environment and build
12-
runs-on: self-hosted
12+
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout the code to specific branch
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616

1717
- name: Set up JDK
18-
uses: actions/setup-java@v2
18+
uses: actions/setup-java@v3
1919
with:
20-
distribution: 'zulu'
2120
java-version: '11'
22-
23-
- name: Setup Android SDK
24-
uses: android-actions/setup-android@v2
21+
distribution: 'temurin'
22+
cache: gradle
2523

2624
- name: Make gradlew executable
27-
run: chmod +x ./gradlew
28-
29-
- name: Compile code
30-
run: ./gradlew assembleDebug
25+
run: chmod +x gradlew
3126

3227
- name: Run Kotlin Linter
3328
run: ./gradlew ktlintCheck
@@ -36,4 +31,7 @@ jobs:
3631
run: ./gradlew pmd
3732

3833
- name: Run Checkstyle
39-
run: ./gradlew checkstyle
34+
run: ./gradlew checkstyle
35+
36+
- name: Compile code
37+
run: ./gradlew assembleDebug

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ local.properties
1010
*.*~
1111

1212
# gradle env props
13-
gradle.properties
1413
secrets.properties
1514

1615
# built application files

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def getMasterCommitCount = { ->
3030
}
3131
return Integer.parseInt(stdout.toString().trim())
3232
} catch (ignored) {
33-
return -1;
33+
return 1
3434
}
3535
}
3636

@@ -50,7 +50,7 @@ def getVersionName = { ->
5050
}
5151
return stdout.toString().trim()
5252
} catch (ignored) {
53-
return null;
53+
return null
5454
}
5555
}
5656

gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
android.useAndroidX=true
2+
android.enableJetifier=true

0 commit comments

Comments
 (0)