Skip to content

Commit b464c84

Browse files
committed
ci: update Gradle setup actions and cache configuration in workflows
1 parent 5d48eea commit b464c84

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/android-spotless.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
java-version: 21
2121
distribution: 'adopt'
2222
- name: Setup Gradle
23-
uses: gradle/gradle-build-action@v3
23+
uses: gradle/actions/setup-gradle@v4
24+
with:
25+
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
2426
- name: Grant execute permission for gradlew
2527
run: chmod +x gradlew
2628
- name: Run spotless check

.github/workflows/android-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
java-version: 21
2121
distribution: 'adopt'
2222
- name: Setup Gradle
23-
uses: gradle/gradle-build-action@v3
23+
uses: gradle/actions/setup-gradle@v4
24+
with:
25+
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
2426
- name: Grant execute permission for gradlew
2527
run: chmod +x gradlew
2628
- name: Run tests

.github/workflows/gradle-dokka.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
java-version: 21
1818
distribution: 'adopt'
1919
- name: Setup Gradle
20-
uses: gradle/gradle-build-action@v3
20+
uses: gradle/actions/setup-gradle@v4
21+
with:
22+
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
2123
- name: Grant execute permission for gradlew
2224
run: chmod +x gradlew
2325
- name: Generate docs with dokka

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ fabric.properties
237237
# End of https://www.gitignore.io/api/java,kotlin,android,androidstudio
238238

239239
app/.config/secrets.properties
240-
241240
app/schema.graphql
241+
app/lint-baseline.xml
242242

243243
.idea/deploymentTargetSelector.xml
244-
245244
.idea/appInsightsSettings.xml
246-
247-
app/lint-baseline.xml
245+
.idea/studiobot.xml
246+
.idea/runConfigurations.xml
247+
.idea/AndroidProjectSystem.xml

0 commit comments

Comments
 (0)