-
Notifications
You must be signed in to change notification settings - Fork 1.1k
129 lines (106 loc) · 3.49 KB
/
Copy pathbuild.yml
File metadata and controls
129 lines (106 loc) · 3.49 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: "Open Build"
on:
pull_request:
# Cancel running build when new ref gets pushed.
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
defaults:
run:
shell: "bash"
env:
MAVEN_ARGS: >
--show-version
--batch-mode
--fail-fast
--update-snapshots
--no-transfer-progress
MAVEN_OPTS: >
-DtrimStackTrace=false
-Djansi.force=true
-Dmaven.wagon.http.retryHandler.class=standard
-Dmaven.wagon.http.retryHandler.count=3
-Dmaven.wagon.http.pool=false
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120
-Dhttp.keepAlive=false
JAVA_OPTS: "-Xmx6g"
TIMEOUT_MULTIPLIER: "2.0"
GRAYLOG_IT_PROXIED_REQUESTS_TIMEOUT: "30s"
jobs:
build-artifacts:
name: "Artifacts"
runs-on: "runs-on=${{ github.run_id }}-build-artifacts/runner=ubuntu-4-core"
steps:
- uses: "actions/checkout@v5"
- name: "Set up JDK"
uses: "actions/setup-java@v5"
with:
java-version: "21"
distribution: "temurin"
- name: "Build with Maven"
run: "./mvnw -Pedantic clean -Dspotbugs.skip -DskipTests package javadoc:javadoc"
env:
NODE_OPTIONS: "--max-old-space-size=8192"
frontend-tests:
name: "Frontend Tests"
runs-on: "runs-on=${{ github.run_id }}-frontend-tests/runner=ubuntu-4-core"
steps:
- uses: "actions/checkout@v5"
- name: "Set up JDK"
uses: "actions/setup-java@v5"
with:
java-version: "21"
distribution: "temurin"
- name: "Build with Maven"
run: "./mvnw -Pedantic -Dspotbugs.skip -Dmaven.test.skip -Dskip.datanode -Dcyclonedx.skip clean test"
env:
NODE_OPTIONS: "--max-old-space-size=8192"
backend-tests:
name: "Backend Tests"
runs-on: "runs-on=${{ github.run_id }}-backend-tests/runner=ubuntu-4-core"
steps:
- uses: "actions/checkout@v5"
- name: "Set up JDK"
uses: "actions/setup-java@v5"
with:
java-version: "21"
distribution: "temurin"
- name: "Build with Maven"
run: "./mvnw -Pedantic -Dspotbugs.skip -Dskip.web.build -Dassembly.skipAssembly -Dcyclonedx.skip clean verify -DexcludedGroups=full-backend-test"
full-backend-tests:
name: "Full Backend Tests"
runs-on: "runs-on=${{ github.run_id }}-full-backend-tests/runner=ubuntu-4-core"
strategy:
fail-fast: false
matrix:
service:
# Latest OpenSearch and MongoDB
- search-server-distribution: "OpenSearch"
search-server-version: "2.19.5"
mongodb-version: "8.0"
# Data Node
- search-server-distribution: "DataNode"
mongodb-version: "7.0"
steps:
- uses: "actions/checkout@v5"
- name: "Set up JDK"
uses: "actions/setup-java@v5"
with:
java-version: "21"
distribution: "temurin"
- name: "Build with Maven"
run: >
./mvnw
-Pedantic
-Dspotbugs.skip
-Dskip.web.tests
-Dcyclonedx.skip
-Dskip.artifact.assembly
clean
verify
-Dgroups=full-backend-test
-Dtest.integration.search-server.distribution=${{ matrix.service.search-server-distribution || '' }}
-Dtest.integration.search-server.version=${{ matrix.service.search-server-version || '' }}
-Dtest.integration.mongodb.version=${{ matrix.service.mongodb-version || '' }}
env:
NODE_OPTIONS: "--max-old-space-size=8192"