Depend on jwat 1.2.1 and adapt accordingly #359
Workflow file for this run
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: PR QA | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
name: Checkout and Build | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
java-version: [8, 11] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
jhove: | |
- 'jhove-core/**' | |
- 'jhove-ext-modules/**' | |
- 'jhove-modules/**' | |
- 'jhove-apps/**' | |
- 'jhove-installer/**' | |
- 'pom.xml' | |
testing: | |
- 'jhove-bbt/scripts/**' | |
- 'test-root/corpora/**' | |
- name: JDK setup | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn --batch-mode --update-snapshots install -DjacocoAgg | |
- name: Integration(matrix.java-version == 8) && (steps.filter.outputs.jhove == 'true') | |
run: ./bbt-jhove | |
shell: bash | |
- name: Test with Maven | |
if: (matrix.java-version == 8) | |
run: mvn --batch-mode verify -DjacocoAgg | |
- name: Upload coverage report | |
if: (matrix.java-version == 8) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: jhove-apps/target/site/jacoco-aggregate/ | |
coverage: | |
name: Quality Assurance | |
runs-on: ubuntu-20.04 | |
needs: [ build ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Codacy analysis reporting | |
uses: codacy/[email protected] | |
- name: Download coverage report | |
uses: actions/download-artifact@v4 | |
with: | |
name: coverage-report | |
path: jhove-apps/target/site/jacoco-aggregate/ | |
- name: Codecov coverage reporting | |
uses: codecov/codecov-action@v4 | |
with: | |
files: jhove-apps/target/site/jacoco-aggregate/jacoco.xml | |
fail_ci_if_error: false # optional (default = false) | |
verbose: true # optional (default = false) | |
name: codecov-jhove | |
token: ${{ secrets.CODECOV_TOKEN }} # required | |