diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml index b28c7a9..1ecdf3b 100644 --- a/.github/workflows/maven.yaml +++ b/.github/workflows/maven.yaml @@ -14,15 +14,17 @@ jobs: matrix: os: [ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 # required by wagoid/commitlint-github-action to validate range of commits instead of just the latest one - uses: wagoid/commitlint-github-action@v4 if: matrix.os == 'ubuntu-latest' - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: corretto + java-version: 8 + cache: maven - run: rm -rf /tmp/* if: matrix.os == 'ubuntu-latest' continue-on-error: true @@ -38,13 +40,13 @@ jobs: shell: cmd if: matrix.os == 'windows-latest' - name: Upload Failed Test Report - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v3 if: failure() with: name: Failed Test Report path: target/surefire-reports - name: Upload Coverage - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v3 if: matrix.os == 'ubuntu-latest' with: name: Coverage Report ${{ matrix.os }} @@ -54,7 +56,7 @@ jobs: run: python3 .github/scripts/cover2cover.py target/jacoco-report/jacoco.xml src/main/java > target/jacoco-report/cobertura.xml - name: cobertura-report-unit-test if: matrix.os == 'ubuntu-latest' - uses: shaguptashaikh/cobertura-action@master + uses: 5monkeys/cobertura-action@v14 continue-on-error: true with: # The GITHUB_TOKEN for this repo @@ -73,3 +75,4 @@ jobs: show_class_names: true # Use a unique name for the report and comment report_name: Unit Tests Coverage Report + only_changed_files: true