Skip to content

CASSANDRA-19978 Testcontainers integration #537

CASSANDRA-19978 Testcontainers integration

CASSANDRA-19978 Testcontainers integration #537

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
build:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.22', '1.23' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- run: go vet
- name: Run unit tests
run: go test -v -tags unit -race
integration-tc:
needs: build
runs-on: ubuntu-latest
name: integration-tc
strategy:
matrix:
go: [ '1.22', '1.23' ]
cassandra_version: [ '4.0.13', '4.1.6', '5.0.0']
auth: [ "false" ]
compressor: [ "snappy" ]
tags: [ "cassandra", "integration", "tc"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: setup
run: |
args="-gocql.timeout=60s -runssl -proto=4 -rf=3 -clusterSize=3 -autowait=2000ms -compressor=${{ matrix.compressor }} -gocql.cversion=${{ matrix.cassandra_version }} ./..."
echo "args=$args" >> $GITHUB_ENV
- name: run
run: |
go test -v -tags "${{ matrix.tags }} gocql_debug" -timeout=10m -race ${{ env.args }}
integration-auth-tc:
needs: build
runs-on: ubuntu-latest
name: integration-auth-tc
strategy:
matrix:
go: [ '1.22', '1.23' ]
cassandra_version: ['4.1.6', '5.0.0' ]
compressor: [ "snappy" ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: setup
run: |
args="-gocql.timeout=60s -runssl -proto=4 -rf=3 -clusterSize=1 -autowait=2000ms -runauth -compressor=${{ matrix.compressor }} -gocql.cversion=${{ matrix.cassandra_version }}"
echo "args=$args" >> $GITHUB_ENV
- name: run
run: |
go test -v -run=TestAuthentication -tags ""integration" gocql_debug" -timeout=15s -runauth ${{ env.args }}