-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (38 loc) · 1.04 KB
/
maven.test.yaml
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
---
name: mvn
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Tests
strategy:
matrix:
os: [ ubuntu-20.04, macos-14, windows-2022 ]
# We can't use Java 8, because the main dependency https://github.com/objectionary/eo requires at least Java 11
java: [ 11, 21 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-jdk-${{ matrix.java }}-maven-
- run: mvn clean install -P"qulice,long" --errors --batch-mode
- name: Archive failure logs
uses: actions/upload-artifact@v4
if: failure()
with:
name: build-log-files
path: |
target/