-
Notifications
You must be signed in to change notification settings - Fork 54
37 lines (33 loc) · 1.16 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
34
35
36
37
name: build
on:
push:
branches: [ master, 3.x ]
pull_request:
branches: [ master, 3.x ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# test against latest update of each major Java version, as well as specific updates of LTS versions:
java: [6, 7, 8]
steps:
- uses: actions/checkout@v2
- name: Check format
run: ls -la && sh ./check_format.sh
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Build with Maven 3.2.5
run: wget https://archive.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip -P ~/temp
&& unzip -q ~/temp/apache-maven-3.2.5-bin.zip -d ~/temp
&& export M2_HOME=~/temp/apache-maven-3.2.5
&& export PATH=$M2_HOME/bin:$PATH
&& cp ./tools/ci/.settings.xml $HOME/.m2/settings.xml
&& mvn -version
&& mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -U -e
&& sh ./check_format.sh
&& mvn test cobertura:cobertura
- name: Codecov
uses: codecov/codecov-action@v1