Skip to content

Commit b46d01d

Browse files
authored
Merge pull request #85 from synonymdev/feat/ci-cache
Add Gradle Cache to CI
2 parents 0cb0bdc + f59db7d commit b46d01d

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ indent_size = 2
2020
[*.json]
2121
max_line_length = off
2222
indent_size = 2
23+
24+
[*.yml]
25+
max_line_length = off
26+
indent_size = 2

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: CI
32

43
on:
@@ -23,18 +22,25 @@ jobs:
2322
java-version: '17'
2423
distribution: 'adopt'
2524

25+
- name: Cache gradle
26+
uses: actions/cache@v4
27+
with:
28+
path: |
29+
~/.gradle/caches
30+
~/.gradle/wrapper
31+
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
32+
restore-keys: |
33+
gradle-${{ runner.os }}-
34+
2635
- name: Decode google-services.json
2736
run: echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/google-services.json
2837
env:
29-
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
38+
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
3039

3140
- name: Make gradlew executable
3241
run: chmod +x gradlew
3342

34-
- name: gradle wrapper
35-
run: gradle wrapper
36-
37-
- name: Build for Debug with Gradle
43+
- name: Build for debug with gradle
3844
run: ./gradlew assembleDebug
3945

4046
- name: Run tests

app/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ android {
8383
buildTypes {
8484
debug {
8585
signingConfig = signingConfigs.getByName("debug")
86-
// applicationIdSuffix = ".dev"
8786
}
8887
release {
8988
isMinifyEnabled = false

0 commit comments

Comments
 (0)