Skip to content

Commit 0387f83

Browse files
committed
chore: add ktlint verification ci cd
1 parent e411b3e commit 0387f83

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,35 @@ jobs:
6666
6767
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
6868
69+
# Run linting checks
70+
lint:
71+
name: Lint
72+
runs-on: ubuntu-latest
73+
steps:
74+
75+
# Check out the current repository
76+
- name: Fetch Sources
77+
uses: actions/checkout@v6
78+
79+
# Set up the Java environment for the next steps
80+
- name: Setup Java
81+
uses: actions/setup-java@v5
82+
with:
83+
distribution: zulu
84+
java-version: 21
85+
86+
# Setup Gradle
87+
- name: Setup Gradle
88+
uses: gradle/actions/setup-gradle@v5
89+
90+
# Run Ktlint Check
91+
- name: Run Ktlint Check
92+
run: ./gradlew ktlintCheck --console=plain
93+
6994
# Prepare the environment and build the plugin
7095
build:
7196
name: Build
72-
needs: [ validateCommits, templateVerify ]
97+
needs: [ validateCommits, templateVerify, lint ]
7398
runs-on: ubuntu-latest
7499
steps:
75100

0 commit comments

Comments
 (0)