CI: Update Gradle wrapper, run ktlintFormat and auto-commit changes #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
if: ${{ matrix.os != 'self-hosted' }} | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- run: bash ./gradlew ktlintFormat ktlintCheck detekt lint test build connectedAndroidTest --stacktrace | |
- run: ./gradlew wrapper --gradle-version latest --stacktrace | |
- uses: stefanzweifel/git-auto-commit-action@v5 |