Skip to content

Commit d66e9a6

Browse files
Update android-workflow.yaml to fit ktlint-gradle
Use the uniform ktlint version specified in project gradle and make use of the newest compose ruleset
1 parent 460a370 commit d66e9a6

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/android-workflow.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,11 @@ jobs:
163163
java-version: '17'
164164
distribution: 'temurin'
165165

166-
- name: Install ktlint
167-
run: |
168-
curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.3.1/ktlint
169-
chmod a+x ktlint
170-
sudo mv ktlint /usr/local/bin/
166+
- name: Grant execute permission for gradlew
167+
run: chmod +x ./gradlew
171168

172169
- name: Run ktlint
173-
run: |
174-
set -o pipefail
175-
ktlint --reporter=plain | tee ktlint_errors.txt
170+
run: ./gradlew ktlintCheck
176171

177172
# Publish to Firebase App Distribution
178173
# https://github.com/wzieba/Firebase-Distribution-Github-Action

0 commit comments

Comments
 (0)