-
Notifications
You must be signed in to change notification settings - Fork 1.5k
46 lines (46 loc) · 1.3 KB
/
ci-dgraph-jepsen-tests.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: 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