mirror of
https://github.com/home-assistant/android
synced 2024-07-21 18:34:51 +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-project: ${{ secrets.LOKALISE_PROJECT }}
|
||||||
lokalise-token: ${{ secrets.LOKALISE_TOKEN }}
|
lokalise-token: ${{ secrets.LOKALISE_TOKEN }}
|
||||||
|
|
||||||
|
- uses: gradle/wrapper-validation-action@v1
|
||||||
|
name: Validate Gradle Wrapper
|
||||||
|
|
||||||
- name: Build Release
|
- name: Build Release
|
||||||
env:
|
env:
|
||||||
KEYSTORE_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_FILE_PASSWORD }}
|
KEYSTORE_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_FILE_PASSWORD }}
|
||||||
|
@ -177,6 +180,9 @@ jobs:
|
||||||
lokalise-project: ${{ secrets.LOKALISE_PROJECT }}
|
lokalise-project: ${{ secrets.LOKALISE_PROJECT }}
|
||||||
lokalise-token: ${{ secrets.LOKALISE_TOKEN }}
|
lokalise-token: ${{ secrets.LOKALISE_TOKEN }}
|
||||||
|
|
||||||
|
- uses: gradle/wrapper-validation-action@v1
|
||||||
|
name: Validate Gradle Wrapper
|
||||||
|
|
||||||
- name: Build Release
|
- name: Build Release
|
||||||
env:
|
env:
|
||||||
KEYSTORE_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_FILE_PASSWORD }}
|
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 wear/google-services.json
|
||||||
cp .github/mock-google-services.json automotive/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
|
- name: Validate ktlint
|
||||||
run: ./gradlew ktlintCheck
|
run: ./gradlew ktlintCheck
|
||||||
|
|
||||||
|
@ -58,6 +61,9 @@ jobs:
|
||||||
cp .github/mock-google-services.json wear/google-services.json
|
cp .github/mock-google-services.json wear/google-services.json
|
||||||
cp .github/mock-google-services.json automotive/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
|
- name: Validate Lint
|
||||||
run: ./gradlew 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 wear/google-services.json
|
||||||
cp .github/mock-google-services.json automotive/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
|
- name: Build Debug APK
|
||||||
run: ./gradlew assembleDebug
|
run: ./gradlew assembleDebug
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue