-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (42 loc) · 1.49 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
38
39
40
41
42
43
44
45
46
name: Build project
on: [push, pull_request]
jobs:
compile:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
java: [ 12, 13, 14 ]
name: Java ${{ matrix.java }} compile
steps:
- name: Checkout Source Code
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-package: jdk
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Compile the Project
run: mvn -B compile
- name: Start Zookeeper
run: |
mkdir /tmp/zookeeper
export ZK="apache-zookeeper-3.7.0-bin"
wget https://archive.apache.org/dist/zookeeper/zookeeper-3.7.0/$ZK.tar.gz
tar xzf $ZK.tar.gz -C /tmp/zookeeper
cp /tmp/zookeeper/$ZK/conf/zoo_sample.cfg /tmp/zookeeper/$ZK/conf/zoo.cfg
/tmp/zookeeper/$ZK/bin/zkServer.sh start
cat /tmp/zookeeper/$ZK/logs/*
sed -i "s/zookeepernodes:.*/zookeepernodes:\ ['localhost:2181']/" conf/bboxdb.yaml
echo "#####################################################################"
cat conf/bboxdb.yaml
echo "#####################################################################"
mkdir -p /tmp/bboxdb/data
- name: Test the Project
run: mvn test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
verbose: true