summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2024-08-14 00:18:51 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2024-08-14 00:18:51 +0530
commitb699b4db71d08b574cc31daf4ee8c9b849ebaa11 (patch)
tree50dd1fddb1c2c270a28d5819af2bbe570fcbb289 /.github
parent3af68b45c4cfd815b9975108fa09cb3872fbab8b (diff)
feat(build): replace homebrew ktfmt formatter with Spotless
Spotless has fixed their Gradle Configuration Cache woes in the past couple months which gets rid of my primary complaint.
Diffstat (limited to '.github')
-rw-r--r--.github/renovate.json512
-rw-r--r--.github/workflows/pull_request.yml2
2 files changed, 12 insertions, 2 deletions
diff --git a/.github/renovate.json5 b/.github/renovate.json5
index 71995b37..ecbc5a60 100644
--- a/.github/renovate.json5
+++ b/.github/renovate.json5
@@ -68,6 +68,16 @@
"datasourceTemplate": "maven",
"depNameTemplate": "androidx.compose.compiler:compiler",
"registryUrlTemplate": "https://maven.google.com",
- }
+ },
+ {
+ "fileMatch": [
+ "build-logic/src/main/kotlin/app/passwordstore/gradle/SpotlessPlugin.kt"
+ ],
+ "matchStrings": [
+ "KTFMT_VERSION = \"(?<currentValue>.*)\""
+ ],
+ "datasourceTemplate": "maven",
+ "depNameTemplate": "com.facebook:ktfmt"
+ }
]
}
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index f5879ab7..242065f6 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -20,7 +20,7 @@ jobs:
- name: Check codestyle
shell: bash
- run: ./gradlew ktfmtCheck
+ run: ./gradlew spotlessCheck
- name: Upload Kotlin build report
if: "${{ always() }}"