Merge pull request #438 from awslabs/dependabot/maven/nl.jqno.equalsv… #1284
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |