Skip to content

Commit da57e41

Browse files
committed
add test
1 parent 22fa64b commit da57e41

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ jobs:
4040
cluster:
4141
runs-on: ubuntu-latest
4242

43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
db:
47+
- type: "cluster"
48+
- type: "cluster-cassandra"
49+
4350
steps:
4451
- uses: actions/checkout@v4
4552

@@ -121,16 +128,7 @@ jobs:
121128
- name: ScalarDB Cluster test
122129
run: |
123130
cd scalardb
124-
lein with-profile cluster run test --workload transfer --nodes localhost --db cluster --username runner --ssh-private-key ~/.ssh/id_rsa --docker-username ${{ github.repository_owner }} --docker-access-token ${{ secrets.CR_PAT }} --nemesis crash
125-
126-
- name: Check test result
127-
run: |
128-
if grep -q "Everything looks good!" scalardb/store/latest/jepsen.log; then
129-
echo "Test passed"
130-
else
131-
echo "Test failed"
132-
exit 1
133-
fi
131+
lein with-profile cluster run test --workload transfer --nodes localhost --db ${{ matrix.db.type }} --username runner --ssh-private-key ~/.ssh/id_rsa --docker-username ${{ github.repository_owner }} --docker-access-token ${{ secrets.CR_PAT }} --nemesis crash
134132
135133
- name: Upload logs
136134
if: always()

0 commit comments

Comments
 (0)