2023-08-23 22:49:44 +02:00
|
|
|
name: reviewdog-suggester
|
|
|
|
on: pull_request
|
2023-09-05 22:20:18 +02:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
issues: write
|
|
|
|
pull-requests: write
|
|
|
|
|
2023-08-23 22:49:44 +02:00
|
|
|
jobs:
|
|
|
|
ktlint:
|
|
|
|
timeout-minutes: 5
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: actions/setup-java@v3
|
|
|
|
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:
|
|
|
|
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
|
|
|
|
|
|
|
|
- run: chmod +x ./gradlew
|
|
|
|
|
|
|
|
- run: ./gradlew ktlintFormat
|
|
|
|
|
|
|
|
- uses: reviewdog/action-suggester@v1
|
|
|
|
with:
|
|
|
|
tool_name: ktlintFormat
|