-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* format JSON and YAML (and remove from Spotless) * Verify GitHub Workflows and Renovate configs * Re-enable Java formatting in Spotless * Forbid tabs and crlf * GitHub Quality check Action
- Loading branch information
Showing
34 changed files
with
643 additions
and
523 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 |
---|---|---|
@@ -1,15 +1,29 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ "config:base" ], | ||
"commitMessageExtra": "from {{{currentValue}}} to {{{newValue}}}{{#if isMajor}} (major v{{{newMajor}}}){{else}}{{/if}}", | ||
"extends": [ | ||
"config:base" | ||
], | ||
"packageRules": [ | ||
{ | ||
"description": "Disable updating AGP compatibility dependencies. Allow changes in minor and patches.", | ||
"enabled": false, | ||
"matchFiles": [ | ||
"gradle/agp.dependencies.toml", | ||
"demo/android-agp7/**" | ||
], | ||
"matchPackageNames": [ | ||
"com.android.tools.build:gradle" | ||
], | ||
"matchUpdateTypes": [ | ||
"major" | ||
] | ||
} | ||
], | ||
"pre-commit": { | ||
"enabled": true | ||
}, | ||
"separateMajorMinor": true, | ||
"separateMultipleMajor": true, | ||
"separateMinorPatch": true, | ||
"packageRules": [ { | ||
"description": "Disable updating AGP compatibility dependencies. Allow changes in minor and patches.", | ||
"matchPackageNames": [ "com.android.tools.build:gradle" ], | ||
"matchFiles": [ "gradle/agp.dependencies.toml", "demo/android-agp7/**" ], | ||
"matchUpdateTypes": [ "major" ], | ||
"enabled": false | ||
} ] | ||
"separateMultipleMajor": true | ||
} |
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 @@ | ||
pre-commit==3.6.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,62 @@ | ||
name: "Validate Gradle Wrapper" | ||
--- | ||
name: Validate Gradle Wrapper | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- main | ||
paths: | ||
- 'gradle/wrapper/**' | ||
- 'demo/android-agp7/gradle/wrapper/**' | ||
- 'demo/java/gradle/wrapper/**' | ||
- .github/workflows/gradle-wrapper-validation.yml | ||
- gradle/wrapper/** | ||
- demo/android-agp7/gradle/wrapper/** | ||
- demo/java/gradle/wrapper/** | ||
- .github/workflows/gradle-wrapper-validation.yml | ||
pull_request: | ||
branches: | ||
- main | ||
- main | ||
paths: | ||
- 'gradle/wrapper/**' | ||
- 'demo/android-agp7/gradle/**' | ||
- 'demo/java/gradle/**' | ||
- .github/workflows/gradle-wrapper-validation.yml | ||
- gradle/wrapper/** | ||
- demo/android-agp7/gradle/** | ||
- demo/java/gradle/** | ||
- .github/workflows/gradle-wrapper-validation.yml | ||
|
||
concurrency: | ||
# Documentation suggests ${{ github.head_ref }}, but that's only available on pull_request/pull_request_target triggers, so using ${{ github.ref }}. | ||
# On master, we want all builds to complete even if merging happens faster to make it easier to discover at which point something broke. | ||
group: ${{ github.ref == 'refs/heads/main' && format('gradle-wrapper-validation-main-{0}', github.sha) || format('gradle-wrapper-validation-{0}', github.ref) }} | ||
group: ${{ github.ref == 'refs/heads/main' && format('gradle-wrapper-validation-main-{0}', github.sha) || format('gradle-wrapper-validation-{0}', github.ref) | ||
}} | ||
cancel-in-progress: true | ||
|
||
env: | ||
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dkotlin.incremental=false -Dkotlin.compiler.execution.strategy=in-process | ||
|
||
jobs: | ||
validationPlugin: | ||
name: "Wrapper validation: Plugin" | ||
name: 'Wrapper validation: Plugin' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gradle/wrapper-validation-action@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gradle/wrapper-validation-action@v2 | ||
validationJavaKotlinSample: | ||
name: "Wrapper validation: Java Demo" | ||
name: 'Wrapper validation: Java Demo' | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: demo/java | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gradle/wrapper-validation-action@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gradle/wrapper-validation-action@v2 | ||
validationAndroidAgp7Sample: | ||
name: "Wrapper validation: Android AGP 7 Demo" | ||
name: 'Wrapper validation: Android AGP 7 Demo' | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: demo/android-agp7 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gradle/wrapper-validation-action@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gradle/wrapper-validation-action@v2 |
Oops, something went wrong.