Archived
PMD was removed from pom.xml in previous commit, so the CI job is no longer needed. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
96 lines
2.0 KiB
YAML
96 lines
2.0 KiB
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
checkstyle:
|
|
name: Checkstyle
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
cache: maven
|
|
|
|
- name: Run Checkstyle
|
|
run: mvn checkstyle:check
|
|
|
|
spotbugs:
|
|
name: SpotBugs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
cache: maven
|
|
|
|
- name: Run SpotBugs
|
|
run: mvn compile spotbugs:check
|
|
|
|
- name: Upload SpotBugs Report
|
|
uses: actions/upload-artifact@v4
|
|
if: failure()
|
|
with:
|
|
name: spotbugs-report
|
|
path: target/spotbugsXml.xml
|
|
|
|
test:
|
|
name: Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
cache: maven
|
|
|
|
- name: Run Tests with Coverage
|
|
run: mvn test jacoco:report
|
|
|
|
- name: Upload Coverage Report
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: coverage-report
|
|
path: target/site/jacoco/
|
|
|
|
- name: Check Coverage Thresholds
|
|
run: mvn jacoco:check
|
|
|
|
verify:
|
|
name: Full Verification
|
|
needs: [checkstyle, spotbugs, test]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
cache: maven
|
|
|
|
- name: Run Full Verify
|
|
run: mvn verify
|
|
|
|
- name: Upload Build Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: build-artifacts
|
|
path: target/*.jar
|