-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1.1 KB
/
build.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
name: Build the repository
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 17 ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
cache: maven
- name: Set up Yarn cache
uses: actions/cache@v2
with:
key: ${{ runner.os }}-yarn-${{ hashFiles('graylog2-web-interface/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
path: ~/.cache/yarn
- name: License check
run: mvn -B --fail-fast license:check
- name: Build with Maven
run: mvn -B --fail-fast -Pedantic -Dspotbugs.skip -Dit.es -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 verify javadoc:javadoc
env:
JAVA_OPTS: -Xmx6G
TIMEOUT_MULTIPLIER: 2.0