diff --git a/.github/actions/setup-jdk/action.yml b/.github/actions/setup-jdk/action.yml index 209dfce..62bc4ff 100644 --- a/.github/actions/setup-jdk/action.yml +++ b/.github/actions/setup-jdk/action.yml @@ -5,7 +5,7 @@ runs: using: "composite" steps: - name: Set up JDK 25 - uses: actions/setup-java@v5 + uses: actions/setup-java@v6 with: java-version: '25' distribution: 'temurin' diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 2742724..0b97cfd 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -13,7 +13,7 @@ jobs: contents: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 - name: Set up JDK uses: ./.github/actions/setup-jdk - name: Build with Maven @@ -31,8 +31,20 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 - name: Set up JDK uses: ./.github/actions/setup-jdk - name: Check formatting - run: mvn -B spotless:check --file pom.xml \ No newline at end of file + run: mvn -B spotless:check --file pom.xml + + lint: + needs: build + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v7 + - name: Set up JDK + uses: ./.github/actions/setup-jdk + - name: Check lint + run: mvn -B checkstyle:check --file pom.xml \ No newline at end of file diff --git a/checkstyle.xml b/checkstyle.xml new file mode 100644 index 0000000..9090167 --- /dev/null +++ b/checkstyle.xml @@ -0,0 +1,11 @@ + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index d1e244a..66d3ed7 100644 --- a/pom.xml +++ b/pom.xml @@ -197,6 +197,24 @@ + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.6.0 + + checkstyle.xml + true + true + + + + verify + + check + + + + - + \ No newline at end of file