Skip to content

Java Code Format

Java Code Format #1276

Workflow file for this run

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