-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.14 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
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
- 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