Skip to content

Commit 0ff9bcb

Browse files
committed
cicd: add ccm cache
1 parent eed44ba commit 0ff9bcb

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
run: make check
2424
- name: Run unit tests
2525
run: make test-unit
26+
2627
integration-cassandra:
2728
timeout-minutes: 15
2829
needs:
@@ -60,6 +61,12 @@ jobs:
6061
path: ~/.sdkman
6162
key: ${{ runner.os }}-sdkman
6263

64+
- name: Set up cache for CCM
65+
uses: actions/cache@v4
66+
with:
67+
path: ~/.ccm/repository
68+
key: ${{ runner.os }}-ccm-${{ matrix.cassandra_version }}
69+
6370
- name: Start cassandra nodes
6471
env:
6572
CASSANDRA_VERSION: ${{ matrix.cassandra_version }}
@@ -115,14 +122,18 @@ jobs:
115122
- name: Set up cache for SDKMAN
116123
uses: actions/cache@v3
117124
with:
118-
path: ~/.sdkman/tmp
125+
path: ~/.sdkman
119126
key: ${{ runner.os }}-sdkman
120127

128+
- name: Set up cache for CCM
129+
uses: actions/cache@v4
130+
with:
131+
path: ~/.ccm/repository
132+
key: ${{ runner.os }}-ccm-${{ matrix.cassandra_version }}
133+
121134
- name: Start cassandra nodes
122135
env:
123136
CASSANDRA_VERSION: ${{ matrix.cassandra_version }}
124-
TEST_CQL_PROTOCOL: ${{ matrix.proto_version }}
125-
TEST_COMPRESSOR: ${{ matrix.compressor }}
126137
run: |
127138
make cassandra-start
128139
sleep 30s
@@ -134,4 +145,4 @@ jobs:
134145
TEST_COMPRESSOR: ${{ matrix.compressor }}
135146
TEST_INTEGRATION_TAGS: ${{ matrix.tags }}
136147
run: |
137-
TEST_OPTS="-run=TestAuthentication" make test-integration
148+
make test-integration-auth

0 commit comments

Comments
 (0)