-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (34 loc) · 1.08 KB
/
check_style.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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