Skip to content

Commit

Permalink
Merge branch 'integration' into newGpsTags
Browse files Browse the repository at this point in the history
  • Loading branch information
carlwilson authored Jan 10, 2023
2 parents 6041a05 + 9beaf49 commit 6894c72
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
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@v3
with:
Expand All @@ -24,6 +38,36 @@ jobs:
- name: Build with Maven
run: mvn --batch-mode --update-snapshots install -DjacocoAgg
- name: Integration Tests
if: matrix.java-version == 8
if: (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@v3
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: Download coverage report
uses: actions/download-artifact@v3
with:
name: coverage-report
path: jhove-apps/target/site/jacoco-aggregate/
- name: Codecov coverage reporting
uses: codecov/codecov-action@v3
with:
files: jhove-apps/target/site/jacoco-aggregate/jacoco.xml
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
- name: Codacy analysis reporting
uses: codacy/codacy-analysis-cli-action@4.0.0

0 comments on commit 6894c72

Please sign in to comment.