-
Notifications
You must be signed in to change notification settings - Fork 179
81 lines (78 loc) · 2.88 KB
/
build-main-branches.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
71
72
73
74
75
76
77
78
79
80
81
---
name: Continuous Integration Build
on:
push:
branches:
- main
- 3.x
paths-ignore:
- '.github/**'
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.java.continue-on-error == true }}
strategy:
matrix:
java: [
{
'name': '',
'version': '11',
'build_opts': '-Drevapi.skip=true'
},
{
'name': '',
'version': '17',
},
{
'name': '',
'version': '21',
},
{
'version': '21',
'build_opts': '-Pslow-flaky-tests -Drevapi.skip=true -Dformat.skip=true',
'name': 'Slow and Flaky tests',
'continue-on-error': true
}
]
name: Build with Java ${{ matrix.java.version }} ${{ matrix.java.name }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java.version }}
distribution: temurin
cache: maven
- name: Build with Maven
env:
MAVEN_OPTS: ${{ matrix.java.opts }}
run: |
mvn -s .build/ci-maven-settings.xml -Dmaven.resolver.transport=wagon -B \
clean install -Dtest-containers=true ${{ matrix.java.build_opts }}
quality:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
cache: maven
- name: Coverage and Sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_LOGIN }}
run: |
mvn -s .build/ci-maven-settings.xml -B \
clean install sonar:sonar -Pcoverage \
-Dmaven.resolver.transport=wagon \
-Drevapi.skip=true \
-Dsonar.projectKey=smallrye_smallrye-reactive-messaging \
-Dsonar.projectName="SmallRye Reactive Messaging" \
-Dsonar.organization=smallrye \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=$SONAR_LOGIN \
--fail-at-end
- name: Codecov
uses: codecov/[email protected]
if: false