fix issue templates #909
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: "Code Style" | |
on: | |
push: | |
pull_request: | |
jobs: | |
checkstyle: | |
name: Checkstyle | |
runs-on: ubuntu-latest | |
env: | |
JAVA_DISTRIBUTION: temurin | |
JAVA_VERSION: 21 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ env.JAVA_DISTRIBUTION }} | |
java-version: ${{ env.JAVA_VERSION }} | |
cache: 'maven' | |
- name: Verify Maven and Java | |
run: | | |
mvn --version | |
- name: Run Checkstyle | |
run: | | |
mvn -B checkstyle:checkstyle | |
spotbugs: | |
name: SpotBugs | |
runs-on: ubuntu-latest | |
env: | |
JAVA_DISTRIBUTION: temurin | |
JAVA_VERSION: 21 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ env.JAVA_DISTRIBUTION }} | |
java-version: ${{ env.JAVA_VERSION }} | |
cache: 'maven' | |
- name: Verify Maven and Java | |
run: | | |
mvn --version | |
- name: Run SpotBugs | |
run: | | |
mvn -B spotbugs:check | |
license-head: | |
name: License Headers | |
runs-on: ubuntu-latest | |
env: | |
JAVA_DISTRIBUTION: temurin | |
JAVA_VERSION: 21 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ env.JAVA_DISTRIBUTION }} | |
java-version: ${{ env.JAVA_VERSION }} | |
cache: 'maven' | |
- name: Verify Maven and Java | |
run: | | |
mvn --version | |
- name: Check license | |
run: | | |
mvn -B license:check |