-
Notifications
You must be signed in to change notification settings - Fork 81
30 lines (28 loc) · 898 Bytes
/
style.yml
File metadata and controls
30 lines (28 loc) · 898 Bytes
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
on:
pull_request:
permissions:
contents: read
jobs:
check-style:
name: Code Style Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
- name: Cache Gradle packages
uses: actions/cache@v5
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: build-logic-ncj Code Style Check with Gradle and Spotless
run: ./gradlew :build-logic-ncj:clean :build-logic-ncj:spotlessCheck
- name: netCDF-Java Code Style Check with Gradle and Spotless
run: ./gradlew clean spotlessCheck