2023-08-23 22:49:44 +02:00
|
|
|
name: reviewdog-suggester
|
2023-09-25 18:18:39 +02:00
|
|
|
on: pull_request_target
|
2023-09-05 22:20:18 +02:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
|
|
|
|
2023-08-23 22:49:44 +02:00
|
|
|
jobs:
|
|
|
|
ktlint:
|
|
|
|
timeout-minutes: 5
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-27 12:13:11 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-08-23 22:49:44 +02:00
|
|
|
|
2023-12-06 12:21:14 +01:00
|
|
|
- uses: actions/setup-java@v4
|
2023-08-23 22:49:44 +02:00
|
|
|
with:
|
2023-09-05 13:28:56 +02:00
|
|
|
distribution: 'temurin'
|
2023-08-23 22:49:44 +02:00
|
|
|
java-version: '17'
|
|
|
|
cache: 'gradle'
|
|
|
|
|
|
|
|
- run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
|
|
|
|
- uses: gradle/wrapper-validation-action@v1
|
|
|
|
|
|
|
|
- uses: gradle/gradle-build-action@v2
|
|
|
|
with:
|
2023-09-19 16:40:07 +02:00
|
|
|
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
|
2023-08-23 22:49:44 +02:00
|
|
|
|
|
|
|
- run: chmod +x ./gradlew
|
|
|
|
|
|
|
|
- run: ./gradlew ktlintFormat
|
|
|
|
|
|
|
|
- uses: reviewdog/action-suggester@v1
|
|
|
|
with:
|
|
|
|
tool_name: ktlintFormat
|