Skip to content

Set FEATURE_SECURE_PROCESSING for DocumentBuilderFactory #112

Set FEATURE_SECURE_PROCESSING for DocumentBuilderFactory

Set FEATURE_SECURE_PROCESSING for DocumentBuilderFactory #112

Workflow file for this run

#
# This file is part of veraPDF PDF/A Validation Applications, a module of the veraPDF project.
# Copyright (c) 2015-2024, veraPDF Consortium <[email protected]>
# All rights reserved.
#
# veraPDF PDF/A Validation Applications is free software: you can redistribute it and/or modify
# it under the terms of either:
#
# The GNU General public license GPLv3+.
# You should have received a copy of the GNU General Public License
# along with veraPDF PDF/A Validation Applications as the LICENSE.GPL file in the root of the source
# tree. If not, see http://www.gnu.org/licenses/ or
# https://www.gnu.org/licenses/gpl-3.0.en.html.
#
# The Mozilla Public License MPLv2+.
# You should have received a copy of the Mozilla Public License along with
# veraPDF PDF/A Validation Applications as the LICENSE.MPL file in the root of the source tree.
# If a copy of the MPL was not distributed with this file, you can obtain one at
# http://mozilla.org/MPL/2.0/.
#
name: PR QA
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Checkout and Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version: [8, 11, 17, 21]
steps:
- uses: actions/checkout@v4
- name: JDK setup
uses: actions/setup-java@v4
continue-on-error: true
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn --batch-mode --update-snapshots -Dmaven.javadoc.skip=true -V -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -Dmaven.wagon.http.pool=false verify
- name: Upload greenfield coverage report
if: matrix.java-version == 8
uses: actions/upload-artifact@v4
with:
name: greenfield-report
path: greenfield-apps/target/site/jacoco/
- name: Upload GUI coverage report
if: matrix.java-version == 8
uses: actions/upload-artifact@v4
with:
name: gui-report
path: gui/target/site/jacoco/
- name: Upload PDFBox coverage report
if: matrix.java-version == 8
uses: actions/upload-artifact@v4
with:
name: pdfbox-report
path: pdfbox-apps/target/site/jacoco/
coverage:
name: Quality Assurance
runs-on: ubuntu-latest
needs: [ build ]
steps:
- uses: actions/checkout@v4
- name: Download greenfield coverage report
uses: actions/download-artifact@v4
with:
name: greenfield-report
path: greenfield-apps/target/site/jacoco/
- name: Download GUI coverage report
uses: actions/download-artifact@v4
with:
name: gui-report
path: gui/target/site/jacoco/
- name: Download PDFBox coverage report
uses: actions/download-artifact@v4
with:
name: pdfbox-report
path: pdfbox-apps/target/site/jacoco/
- name: Codecov coverage reporting
uses: codecov/codecov-action@v2
with:
files: greenfield-apps/target/site/jacoco/jacoco.xml, gui/target/site/jacoco/jacoco.xml, pdfbox-apps/target/site/jacoco/jacoco.xml
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
token: ${{ secrets.CODECOV_TOKEN }}
- name: Codacy coverage reporting
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: greenfield-apps/target/site/jacoco/jacoco.xml, gui/target/site/jacoco/jacoco.xml, pdfbox-apps/target/site/jacoco/jacoco.xml
- name: Codacy analysis reporting
uses: codacy/codacy-analysis-cli-action@master