Style check on 0e32118e7a0972a5820b5295d60d8d617b29eb98 #37
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
name: Check Style | |
run-name: Style check on ${{ github.sha }} | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
Style-Check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref || github.ref_name }} | |
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} | |
- name: Set up JDK 19 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '19' | |
distribution: 'temurin' | |
- name: Create gradle.properties | |
run: | | |
mkdir -p ~/.gradle | |
echo "RELEASE_STORE_FILE=notExisting.jks" >~/.gradle/gradle.properties | |
echo "RELEASE_STORE_PASSWORD=unused" >>~/.gradle/gradle.properties | |
echo "RELEASE_KEY_ALIAS=unused" >>~/.gradle/gradle.properties | |
echo "RELEASE_KEY_PASSWORD=unused" >>~/.gradle/gradle.properties | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Verify Google Java format | |
run: ./gradlew verifyGoogleJavaFormat |