Skip to content

Commit 011c5f9

Browse files
committed
Simplify integration test runs
1 parent 63b6d78 commit 011c5f9

File tree

1 file changed

+17
-32
lines changed

1 file changed

+17
-32
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- ci-integration-tests-simplify
78
pull_request:
89
types: [ opened, synchronize, reopened ]
910

@@ -36,16 +37,22 @@ jobs:
3637
matrix:
3738
go: [ '1.22', '1.23' ]
3839
cassandra_version: [ '4.0.13', '4.1.6' ]
39-
auth: [ "false" ]
40+
auth: [ "false", "true" ]
4041
compressor: [ "no-compression", "snappy", "lz4" ]
41-
tags: [ "cassandra", "integration", "ccm" ]
42+
tags: [ "cassandra integration ccm", "integration" ]
4243
proto_version: [ "4", "5" ]
4344
exclude:
4445
- proto_version: "5"
4546
compressor: "snappy"
47+
- auth: "true"
48+
cassandra_version: '4.1.6'
49+
- auth: "true"
50+
tags: "cassandra integration ccm"
51+
- auth: "false"
52+
tags: "integration"
4653
steps:
47-
- uses: actions/checkout@v2
48-
- uses: actions/setup-go@v2
54+
- uses: actions/checkout@v3
55+
- uses: actions/setup-go@v4
4956
with:
5057
go-version: ${{ matrix.go }}
5158
- uses: actions/cache@v4
@@ -119,34 +126,11 @@ jobs:
119126
if: 'failure()'
120127
uses: actions/upload-artifact@v4
121128
with:
122-
name: ccm-cluster-cassandra-${{ matrix.cassandra_version }}-go-${{ matrix.go }}-tag-${{ matrix.tags }}-proto-version-${{ matrix.proto_version }}-compressor-${{ matrix.compressor }}
129+
name: ccm-cluster-cassandra-${{ matrix.cassandra_version }}-go-${{ matrix.go }}-tag-${{ matrix.tags }}-proto-version-${{ matrix.proto_version }}-compressor-${{ matrix.compressor }}-auth-${{ matrix.auth}}
123130
path: /home/runner/.ccm/test
124131
retention-days: 5
125-
integration-auth-cassandra:
126-
timeout-minutes: 15
127-
needs:
128-
- build
129-
name: Integration Tests with auth
130-
runs-on: ubuntu-latest
131-
strategy:
132-
fail-fast: false
133-
matrix:
134-
go: [ '1.22', '1.23' ]
135-
cassandra_version: [ '4.0.13' ]
136-
compressor: [ "no-compression", "snappy", "lz4" ]
137-
tags: [ "integration" ]
138-
proto_version: [ "4", "5" ]
139-
exclude:
140-
- proto_version: "5"
141-
compressor: "snappy"
142-
steps:
143-
- uses: actions/checkout@v3
144-
- uses: actions/setup-go@v4
145-
with:
146-
go-version: ${{ matrix.go }}
147-
- name: Setup environment
148-
uses: ./.github/actions/setup-environment
149-
- name: Start cassandra nodes
132+
- name: Start cassndra nodes for auth tests if needed
133+
if: ${{ matrix.auth == 'true' }}
150134
run: |
151135
source ~/venv/bin/activate
152136
VERSION=${{ matrix.cassandra_version }}
@@ -205,8 +189,9 @@ jobs:
205189
echo "args=$args" >> $GITHUB_ENV
206190
echo "JVM_EXTRA_OPTS=$JVM_EXTRA_OPTS" >> $GITHUB_ENV
207191
sleep 30s
208-
- name: Integration tests
192+
- name: Integration tests auth
193+
if: ${{ matrix.auth == 'true' }}
209194
run: |
210195
source ~/venv/bin/activate
211196
export JVM_EXTRA_OPTS="${{env.JVM_EXTRA_OPTS}}"
212-
go test -v -run=TestAuthentication -tags "${{ matrix.tags }} gocql_debug" -timeout=15s -runauth ${{ env.args }}
197+
go test -v -run=TestAuthentication -tags "${{ matrix.tags }} gocql_debug" -timeout=15s -runauth ${{ env.args }}

0 commit comments

Comments
 (0)