update versions of clojure, jepsen, hstreamdb-java and JDK #175
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: CI | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
jobs: | |
jepsen-test: | |
runs-on: ubuntu-latest | |
name: The simplest jepsen test for HStreamDB | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: "recursive" | |
- name: Prepare environment for test | |
run: | | |
cd ./docker | |
./init-secret.sh | |
- name: Build base image | |
run: | | |
docker build -t jepsen-hstream:base ./docker/base/ | |
- name: Build test images | |
run: | | |
docker-compose --file ./docker/docker-compose.yml \ | |
--compatibility \ | |
-p jepsen \ | |
build | |
- name: Clean dangling images | |
run: | | |
docker image prune -f | |
- name: Check disk space | |
run: | | |
df -h | |
- name: Start test cluster and run jepsen test | |
run: | | |
docker-compose --file ./docker/docker-compose.yml \ | |
--compatibility \ | |
-p jepsen \ | |
up \ | |
--renew-anon-volumes \ | |
--exit-code-from control | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v2 | |
if: ${{ success() }} || ${{ failure() }} | |
with: | |
name: jepsen-test-result | |
path: | | |
store/HStream | |
/tmp/*.log | |
!store/HStream/latest | |
retention-days: 7 |