Add integration tests for cross-format migrations, error recovery, an… #25
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ main, develop, 'feature/**' ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: write | |
| jobs: | |
| build: | |
| name: Build & Test (Java ${{ matrix.java }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java: [ '17', '21' ] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Build and test with Maven | |
| run: mvn -B clean verify -Pqa -Ddependency-check.skip=true | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-results-java-${{ matrix.java }} | |
| path: | | |
| **/target/surefire-reports/ | |
| **/target/failsafe-reports/ | |
| retention-days: 7 | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| if: matrix.java == '21' | |
| with: | |
| name: coverage-report | |
| path: | | |
| **/target/site/jacoco/ | |
| **/target/jacoco.exec | |
| retention-days: 7 | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v4 | |
| if: always() | |
| with: | |
| report_paths: '**/target/*-reports/TEST-*.xml' | |
| check_name: Test Report (Java ${{ matrix.java }}) | |
| quality: | |
| name: Code Quality Analysis | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Install artifacts for analysis | |
| run: mvn -B -Ddependency-check.skip=true clean install -Pqa -DskipTests | |
| - name: Run SpotBugs analysis | |
| run: mvn -B spotbugs:check -Pqa -Ddependency-check.skip=true | |
| continue-on-error: true | |
| - name: Run Checkstyle analysis | |
| run: mvn -B checkstyle:check -Pqa -Ddependency-check.skip=true | |
| continue-on-error: true | |
| - name: Upload SpotBugs report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: spotbugs-report | |
| path: '**/target/spotbugsXml.xml' | |
| retention-days: 7 | |
| - name: Upload Checkstyle report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: checkstyle-report | |
| path: '**/target/checkstyle-result.xml' | |
| retention-days: 7 | |
| dependency-check: | |
| name: OWASP Dependency Check | |
| runs-on: ubuntu-latest | |
| needs: build | |
| env: | |
| NVD_API_KEY: ${{ secrets.NVD_API_KEY }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Cache Dependency-Check DB | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository/org/owasp/dependency-check-data | |
| key: depcheck-${{ runner.os }}-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| depcheck-${{ runner.os }}- | |
| - name: Run OWASP Dependency Check | |
| run: mvn -B dependency-check:aggregate -Pqa | |
| continue-on-error: true | |
| - name: Upload Dependency Check report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: dependency-check-report | |
| path: | | |
| target/dependency-check-report.html | |
| retention-days: 30 |