-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.22 KB
/
test-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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