ci-dgraph-jepsen-tests #90
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-dgraph-jepsen-tests | |
on: | |
schedule: | |
- cron: "0 4 * * 3,6" # run twice weekly | |
env: | |
GOPATH: /home/ubuntu/go | |
jobs: | |
dgraph-jepsen-tests: | |
runs-on: warp-ubuntu-latest-x64-4x | |
steps: | |
- name: Checkout dgraph repo | |
uses: actions/checkout@v4 | |
- name: Checkout jepsen repo | |
uses: actions/checkout@v4 | |
with: | |
repository: dgraph-io/jepsen | |
path: jepsen | |
ref: master | |
- name: Set jepsen root | |
run: | | |
#!/bin/bash | |
cd jepsen | |
JEPSEN_ROOT=$(pwd) | |
echo "JEPSEN_ROOT=$JEPSEN_ROOT" >> $GITHUB_ENV | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Make dgraph linux build | |
run: make install | |
- name: Start jepsen cluster | |
run: | | |
#!/bin/bash | |
cd contrib/jepsen | |
go build -v . | |
./jepsen --jepsen-root ${{ env.JEPSEN_ROOT }} --up-only | |
- name: Run jepsen tests | |
run: | | |
#!/bin/bash | |
cd contrib/jepsen | |
./jepsen --jepsen-root ${{ env.JEPSEN_ROOT }} --jaeger="" --web=false --test-all -l 300 | |
- name: Stop jepsen cluster | |
run: | | |
#!/bin/bash | |
cd contrib/jepsen | |
./jepsen --jepsen-root ${{ env.JEPSEN_ROOT }} --down-only |