diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e46954..58336c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,3 +22,14 @@ jobs: java-version: ${{ matrix.java }} cache: maven - run: mvn -q -B verify + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4.9.1 + with: + distribution: temurin + java-version: '21' + cache: maven + - run: mvn -B -ntp -P lint test-compile javadoc:javadoc diff --git a/pom.xml b/pom.xml index d60e8ac..67fdf30 100644 --- a/pom.xml +++ b/pom.xml @@ -72,6 +72,37 @@ + + + lint + + + + org.apache.maven.plugins + maven-compiler-plugin + + true + + -Xlint:all + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.12.0 + + all,-missing + true + + + + +