Merge pull request #1582 from motlin/maven-config #2394
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
# This workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Checkstyle | |
on: [push, pull_request] | |
jobs: | |
applications: | |
name: Checkstyle ${{ matrix.java-version }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
java-version: [11] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
- name: Set Maven Wrapper | |
run: mvn -N wrapper:wrapper -Dmaven=3.6.3 | |
- name: Set JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java-version }} | |
- name: Checkstyle | |
run: ./mvnw install checkstyle:check --activate-profiles all -DskipTests=true | |
env: | |
MAVEN_OPTS: "-Xmx1g" |