-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (64 loc) · 2.02 KB
/
build_maven_compatibility.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# CI maven compatibility check
#
# version 1.0.0
#
# see : https://universe.fugerit.org/src/docs/conventions/workflows/build_maven_compatibility.html
name: CI maven compatibility check
on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- branch-compatibility
jobs:
check-main:
runs-on: ${{ matrix.os }}
strategy:
matrix:
distribution: [ 'corretto' ]
java: [ '17', '21' ]
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
steps:
- uses: actions/checkout@main
- name: Setup java
uses: actions/setup-java@main
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Maven build
run: mvn clean install -P full,coverage
check-alt:
runs-on: ${{ matrix.os }}
strategy:
matrix:
distribution: [ 'oracle', 'temurin' ]
java: [ '17' ]
os: [ 'ubuntu-latest' ]
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
steps:
- uses: actions/checkout@main
- name: Setup java
uses: actions/setup-java@main
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Maven build
run: mvn clean install -P full,coverage
check-ms:
runs-on: ${{ matrix.os }}
strategy:
matrix:
distribution: [ 'microsoft' ]
java: [ '17' ]
os: [ 'windows-latest' ]
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
steps:
- uses: actions/checkout@main
- name: Setup java
uses: actions/setup-java@main
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Maven build
run: mvn clean install -P full,coverage