Skip to content

Commit fc3a5d1

Browse files
build: add ktlint check CI action
1 parent 61858ca commit fc3a5d1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ktlint.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Ktlint Check
2+
3+
on: [workflow_dispatch, pull_request]
4+
5+
jobs:
6+
ktlint:
7+
name: "Run Ktlint Check"
8+
runs-on: ubuntu-22.04
9+
10+
steps:
11+
- name: "Checkout branch"
12+
uses: actions/checkout@v4
13+
14+
- name: "Set up JDK 17"
15+
uses: actions/setup-java@v4
16+
with:
17+
distribution: temurin
18+
java-version: 17
19+
20+
- name: "Run Ktlint Check"
21+
run: ./gradlew ktlintCheck

0 commit comments

Comments
 (0)