Skip to content

Java Code Format

Java Code Format #2114

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: [ "17" ]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Verify code format with Maven
run: mvn --batch-mode --no-transfer-progress --errors -Drevision=0.0.0 com.spotify.fmt:fmt-maven-plugin:check
- name: Verify licenses with Maven
run: mvn --batch-mode --no-transfer-progress --errors -Drevision=0.0.0 license:check