-
Notifications
You must be signed in to change notification settings - Fork 129
56 lines (52 loc) · 1.51 KB
/
build-pull.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
---
name: Check pull requests
on:
pull_request:
branches-ignore:
- '1.x'
concurrency:
group: "check-pull-request-${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [
{ 'version': '11', opts: '' },
{ 'version': '17', 'opts': '' },
{ 'version': '20', 'opts': '' }
]
name: Build with Java ${{ matrix.java.version }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
name: set up jdk ${{matrix.java.version}}
with:
distribution: temurin
java-version: ${{matrix.java.version}}
cache: maven
- name: Build with Maven
env:
MAVEN_OPTS: ${{ matrix.java.opts }}
run: ./mvnw -s .build/maven-ci-settings.xml -B clean verify -Pcoverage
- name: Codecov
uses: codecov/[email protected]
conventional-commits:
runs-on: ubuntu-latest
name: Check conventional commits
steps:
- uses: actions/checkout@v3
- uses: wagoid/commitlint-github-action@v5
compatibility:
runs-on: ubuntu-latest
name: Compatibility Check
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: maven
- name: Compatibility Check
run: ./mvnw -s .build/maven-ci-settings.xml -pl '!bom' -B install revapi:check@check-compatibility -DskipTests -fae