chore(deps): update plugin ktlint to v12.1.0 #98
Workflow file for this run
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: Build Test | |
on: | |
push: | |
branches: [ "main", "develop" ] | |
pull_request: | |
branches: [ "main", "develop" ] | |
merge_group: | |
jobs: | |
build: | |
name: Build Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-overwrite-existing: true | |
- name: create google-services.json | |
run: | | |
echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > app/google-services.json | |
- name: build | |
run: >- | |
./gradlew build | |
-x ktlintKotlinScriptCheck -x ktlintMainSourceSetCheck -x ktlintTestSourceSetCheck | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: ktlint | |
uses: ScaCap/action-ktlint@master | |
with: | |
github_token: ${{ secrets.github_token }} | |
ktlint_version: 1.1.0 | |
file_glob: '!**/src/test/**' | |
reporter: github-pr-check # github-pr-check,github-pr-review,github-check |