Skip to content

2.0.1-SNAPSHOT

2.0.1-SNAPSHOT #1

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: OpenPDF maven build
on:
push:
branches: [ '*' ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# The last 3 LTS releases
# Java 17 is run in codacy-coverage-reporter
java: [ 21 ]
name: Java ${{matrix.java}}
steps:
- uses: actions/[email protected]
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{matrix.java}}
- name: Build with Maven
run: mvn -B verify --file pom.xml -Dgpg.skip
codacy-coverage-reporter:
runs-on: ubuntu-latest
name: Java 17 and codacy-coverage-reporter
steps:
- uses: actions/[email protected]
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Build with Maven
run: mvn -B verify --file pom.xml -Dgpg.skip
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# or
# api-token: ${{ secrets.CODACY_API_TOKEN }}
coverage-reports: ./openpdf/target/site/jacoco/jacoco.xml,./pdf-toolbox/target/site/jacoco/jacoco.xml,./openpdf-fonts-extra/target/site/jacoco/jacoco.xml
# or a comma-separated list for multiple reports
# coverage-reports: <PATH_TO_REPORT>, <PATH_TO_REPORT>