Style check on 1cd7c160c6d2f284672f1e6fbe13f6a4b272cafc #18
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@v3 | |
with: | |
ref: ${{github.head_ref}} | |
fetch-depth: 0 | |
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Verify Google Java format | |
run: ./gradlew verifyGoogleJavaFormat |