Merge pull request #506 from jnidzwetzki/dependabot/maven/org.xerial.… #292
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |