FIX: Double validation reporting #148
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: | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
java-version: [11, 17] | |
name: Checkout and Build | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- uses: pre-commit/[email protected] | |
- name: JDK setup | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn --batch-mode --update-snapshots install -DjacocoAgg | |
- name: Run pre-commit tests | |
uses: pre-commit/[email protected] | |
with: | |
extra_args: --all-files --verbose | |
- name: Test with Maven | |
if: (matrix.java-version == 11) | |
run: mvn --batch-mode verify -DjacocoAgg | |
- name: Test build package on Windows | |
if: (matrix.os == 'windows-latest') | |
run: mvn --batch-mode package -DjacocoAgg && ./odf-validator.bat --version | |
- name: Test build package on Ubuntu | |
if: (matrix.os == 'ubuntu-latest') | |
run: mvn --batch-mode package -DjacocoAgg && ./odf-validator --version |