|
14 | 14 | name: Cassandra 3.0 Permission Integration Test |
15 | 15 | runs-on: ubuntu-latest |
16 | 16 |
|
17 | | - services: |
18 | | - cassandra: |
19 | | - image: cassandra:3.0 |
20 | | - env: |
21 | | - MAX_HEAP_SIZE: 2048m |
22 | | - HEAP_NEWSIZE: 512m |
23 | | - ports: |
24 | | - - 9042:9042 |
25 | | - |
26 | 17 | steps: |
27 | 18 | - uses: actions/checkout@v4 |
28 | 19 |
|
|
35 | 26 | - name: Setup Gradle |
36 | 27 | uses: gradle/actions/setup-gradle@v4 |
37 | 28 |
|
| 29 | + - name: Start Cassandra with custom configuration |
| 30 | + run: | |
| 31 | + docker run -d --name cassandra \ |
| 32 | + -p 9042:9042 \ |
| 33 | + -v ${{ github.workspace }}/ci/no-superuser/cassandra.yaml:/etc/cassandra/cassandra.yaml \ |
| 34 | + -e MAX_HEAP_SIZE=2048m \ |
| 35 | + -e HEAP_NEWSIZE=512m \ |
| 36 | + cassandra:3.0 |
| 37 | +
|
| 38 | + - name: Wait for Cassandra to be ready |
| 39 | + run: | |
| 40 | + for i in {1..30}; do |
| 41 | + if docker exec cassandra cqlsh -e "SHOW VERSION" 2>/dev/null; then |
| 42 | + echo "Cassandra is ready" |
| 43 | + break |
| 44 | + fi |
| 45 | + echo "Waiting for Cassandra to start... (attempt $i/30)" |
| 46 | + sleep 10 |
| 47 | + done |
| 48 | +
|
38 | 49 | - name: Execute Gradle 'integrationTestCassandraPermission' task |
39 | 50 | run: ./gradlew integrationTestCassandraPermission |
40 | 51 |
|
|
49 | 60 | name: Cassandra 3.11 Permission Integration Test |
50 | 61 | runs-on: ubuntu-latest |
51 | 62 |
|
52 | | - services: |
53 | | - cassandra: |
54 | | - image: cassandra:3.11 |
55 | | - env: |
56 | | - MAX_HEAP_SIZE: 2048m |
57 | | - HEAP_NEWSIZE: 512m |
58 | | - ports: |
59 | | - - 9042:9042 |
60 | | - |
61 | 63 | steps: |
62 | 64 | - uses: actions/checkout@v4 |
63 | 65 |
|
|
70 | 72 | - name: Setup Gradle |
71 | 73 | uses: gradle/actions/setup-gradle@v4 |
72 | 74 |
|
| 75 | + - name: Start Cassandra with custom configuration |
| 76 | + run: | |
| 77 | + docker run -d --name cassandra \ |
| 78 | + -p 9042:9042 \ |
| 79 | + -v ${{ github.workspace }}/ci/no-superuser/cassandra.yaml:/etc/cassandra/cassandra.yaml \ |
| 80 | + -e MAX_HEAP_SIZE=2048m \ |
| 81 | + -e HEAP_NEWSIZE=512m \ |
| 82 | + cassandra:3.11 |
| 83 | +
|
| 84 | + - name: Wait for Cassandra to be ready |
| 85 | + run: | |
| 86 | + for i in {1..30}; do |
| 87 | + if docker exec cassandra cqlsh -e "SHOW VERSION" 2>/dev/null; then |
| 88 | + echo "Cassandra is ready" |
| 89 | + break |
| 90 | + fi |
| 91 | + echo "Waiting for Cassandra to start... (attempt $i/30)" |
| 92 | + sleep 10 |
| 93 | + done |
| 94 | +
|
73 | 95 | - name: Execute Gradle 'integrationTestCassandraPermission' task |
74 | 96 | run: ./gradlew integrationTestCassandraPermission |
75 | 97 |
|
|
0 commit comments