-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (29 loc) · 1003 Bytes
/
test.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
name: Test with Docker
on:
push:
branches:
- master
pull_request:
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Setup Cache
uses: satackey/[email protected]
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
- name: docker-compose up
run: |
cd docker
docker compose up -d
- name: Cassandra test
run: |
docker exec jepsen-control bash -c "cd /scalar-jepsen/cassandra && lein run test --workload lwt --nodes n1,n2,n3 --ssh-private-key ~/.ssh/id_rsa"
- name: ScalarDB test
run: |
docker exec jepsen-control bash -c "cd /scalar-jepsen/cassandra && lein install"
docker exec jepsen-control bash -c "cd /scalar-jepsen/scalardb && lein run test --workload transfer --nodes n1,n2,n3 --ssh-private-key ~/.ssh/id_rsa"