-
-
Notifications
You must be signed in to change notification settings - Fork 44
39 lines (31 loc) · 890 Bytes
/
Copy pathformat.yml
File metadata and controls
39 lines (31 loc) · 890 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
31
32
33
34
35
36
37
38
39
name: format
# Spotless also formats markdown and the workflow files themselves, and build_test
# skips those paths to avoid a full build for a doc change. So the format check
# runs here instead, without paths-ignore: every file spotless targets gets
# checked. spotlessCheck only needs java and the android sdk.
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
spotless:
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v7
- name: setup java
uses: actions/setup-java@v6.0.1
with:
distribution: 'zulu'
java-version: 21
- name: Gradle cache
uses: gradle/actions/setup-gradle@v6
- name: spotless
run: ./gradlew spotlessCheck --stacktrace