mirror of
https://github.com/home-assistant/android
synced 2024-10-06 16:19:38 +00:00
Official Gradle Wrapper Validation Action (#3980)
* Create gradle-wrapper-validation.yml * Remove separate gradle wrapper validation workflow * Validate Gradle wrapper directly in pr.yml and onPush.yml before Gradle is invoked
This commit is contained in:
parent
a75d1da1d7
commit
af9f131799
6
.github/workflows/onPush.yml
vendored
6
.github/workflows/onPush.yml
vendored
|
@ -69,6 +69,9 @@ jobs:
|
|||
lokalise-project: ${{ secrets.LOKALISE_PROJECT }}
|
||||
lokalise-token: ${{ secrets.LOKALISE_TOKEN }}
|
||||
|
||||
- uses: gradle/wrapper-validation-action@v1
|
||||
name: Validate Gradle Wrapper
|
||||
|
||||
- name: Build Release
|
||||
env:
|
||||
KEYSTORE_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_FILE_PASSWORD }}
|
||||
|
@ -177,6 +180,9 @@ jobs:
|
|||
lokalise-project: ${{ secrets.LOKALISE_PROJECT }}
|
||||
lokalise-token: ${{ secrets.LOKALISE_TOKEN }}
|
||||
|
||||
- uses: gradle/wrapper-validation-action@v1
|
||||
name: Validate Gradle Wrapper
|
||||
|
||||
- name: Build Release
|
||||
env:
|
||||
KEYSTORE_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_FILE_PASSWORD }}
|
||||
|
|
9
.github/workflows/pr.yml
vendored
9
.github/workflows/pr.yml
vendored
|
@ -30,6 +30,9 @@ jobs:
|
|||
cp .github/mock-google-services.json wear/google-services.json
|
||||
cp .github/mock-google-services.json automotive/google-services.json
|
||||
|
||||
- uses: gradle/wrapper-validation-action@v1
|
||||
name: Validate Gradle Wrapper
|
||||
|
||||
- name: Validate ktlint
|
||||
run: ./gradlew ktlintCheck
|
||||
|
||||
|
@ -58,6 +61,9 @@ jobs:
|
|||
cp .github/mock-google-services.json wear/google-services.json
|
||||
cp .github/mock-google-services.json automotive/google-services.json
|
||||
|
||||
- uses: gradle/wrapper-validation-action@v1
|
||||
name: Validate Gradle Wrapper
|
||||
|
||||
- name: Validate Lint
|
||||
run: ./gradlew lint
|
||||
|
||||
|
@ -100,6 +106,9 @@ jobs:
|
|||
cp .github/mock-google-services.json wear/google-services.json
|
||||
cp .github/mock-google-services.json automotive/google-services.json
|
||||
|
||||
- uses: gradle/wrapper-validation-action@v1
|
||||
name: Validate Gradle Wrapper
|
||||
|
||||
- name: Build Debug APK
|
||||
run: ./gradlew assembleDebug
|
||||
|
||||
|
|
Loading…
Reference in a new issue