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:
IsakTheHacker 2023-11-22 18:53:39 +01:00 committed by GitHub
parent a75d1da1d7
commit af9f131799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -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 }}

View File

@ -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