-
Notifications
You must be signed in to change notification settings - Fork 129
70 lines (65 loc) · 2.05 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
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': '21', '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 --no-transfer-progress -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 --no-transfer-progress -s .build/maven-ci-settings.xml -pl '!bom' -B install revapi:check@check-compatibility -DskipTests -fae
native-compilation:
runs-on: ubuntu-latest
name: Native compilation checks
steps:
- uses: actions/checkout@v3
- uses: sdkman/sdkman-action@main
with:
candidate: java
version: 21-graalce
- name: Quick build
run: ./mvnw --no-transfer-progress -s .build/maven-ci-settings.xml -DskipTests clean install
- name: Run native tests
run: ./mvnw --no-transfer-progress -s .build/maven-ci-settings.xml verify -f native-tests -Pnative