Skip to content

CASSANDRA-19796

CASSANDRA-19796 #514

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.20', '1.21' ]
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-testscontainers:
needs: build
runs-on: ubuntu-latest
name: integration-testscontainers
strategy:
matrix:
go: [ '1.20', '1.21' ]
cassandra_version: [ '4.0.8', '4.1.1' ]
auth: [ "false" ]
compressor: [ "snappy" ]
tags: [ "cassandra", "integration"]
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=5m -race ${{ env.args }}
integration-auth-testscontainers:
needs: build
runs-on: ubuntu-latest
name: integration-auth-testscontainers
strategy:
matrix:
go: [ '1.20', '1.21' ]
cassandra_version: [ '4.0.8', '4.1.1' ]
auth: [ "false" ]
compressor: [ "snappy" ]
tags: [ "cassandra", "integration"]
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 "${{ matrix.tags }} gocql_debug" -timeout=15s -runauth ${{ env.args }}