-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (31 loc) · 974 Bytes
/
format.yaml
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
name: Java Code Format
permissions: {}
on:
push:
branches: ["main"]
pull_request:
branches: ["main", "release-*"]
merge_group:
concurrency:
group: java-format-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
format:
strategy:
matrix:
os: [ ubuntu-22.04 ]
java: [ "11" ]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Verify code format with Maven
run: mvn --batch-mode --no-transfer-progress --errors com.spotify.fmt:fmt-maven-plugin:check
- name: Verify licenses with Maven
run: mvn --batch-mode --no-transfer-progress --errors license:check