-
Notifications
You must be signed in to change notification settings - Fork 103
49 lines (47 loc) · 1.39 KB
/
lint.yaml
File metadata and controls
49 lines (47 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Lint
on:
pull_request:
branches:
- main
- develop
concurrency:
group: lint-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
commit-lint:
name: Lint Commit Message
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24.x
- name: Install dependencies
run: npm install
- name: Validate all commits from PR
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
ktlint:
name: Lint Kotlin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v5
- name: Lint Kotlin with Gradle
run: |
./gradlew lintKotlin
./gradlew -p support/spring-data-jpa-boot4 lintKotlin
./gradlew -p example/spring-data-jpa-boot4 lintKotlin
- name: Cleanup Gradle Cache
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties