-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: config spotless, ktlint and format all ❤️ (#57)
* style: config spotless, ktlint and format all ❤️ * ci: update * ci: update * ci: update * ci: paths-ignore: [ '**.md' ]
- Loading branch information
Showing
150 changed files
with
2,649 additions
and
2,360 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
root=true | ||
[*] | ||
indent_size=2 | ||
end_of_line=lf | ||
charset=utf-8 | ||
trim_trailing_whitespace=true | ||
insert_final_newline=true | ||
[*.{kt,kts}] | ||
ij_kotlin_imports_layout=* | ||
[*.xml] | ||
indent_size=4 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Remove old artifacts | ||
|
||
on: | ||
schedule: | ||
# Runs at 01:00 UTC on the 1, 8, 15, 22 and 29th of every month. | ||
- cron: '0 1 */7 * *' | ||
|
||
jobs: | ||
remove-old-artifacts: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- name: Remove old artifacts | ||
uses: c-hive/gha-remove-artifacts@v1 | ||
with: | ||
age: '7 days' | ||
skip-tags: true | ||
skip-recent: 5 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: reviewdog-suggester | ||
on: | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
paths-ignore: [ '**.md' ] | ||
|
||
jobs: | ||
kotlin: | ||
name: runner / suggester / spotless | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check try_mvi branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: try_mvi | ||
|
||
- name: Checkout current branch | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11' | ||
|
||
- name: Cache gradle, wrapper and buildSrc | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ github.job }}- | ||
- name: Make gradlew executable | ||
run: chmod +x ./gradlew | ||
|
||
- name: Decode PLACE_API_KEY | ||
env: | ||
BASEURL: ${{ secrets.PLACE_API_KEY }} | ||
run: echo PLACE_API_KEY="$PLACE_API_KEY" > ./local.properties | ||
|
||
- name: Spotless apply | ||
run: ./gradlew spotlessKotlinApply | ||
|
||
- name: Reviewdog | ||
uses: reviewdog/action-suggester@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
tool_name: spotless | ||
|
||
- name: Make gradlew executable | ||
run: chmod +x ./gradlew | ||
|
||
- name: Spotless check | ||
run: ./gradlew spotlessKotlinCheck |
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
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
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
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
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
Oops, something went wrong.