Skip to content

CASSGO-86 Remove release date from new releases and add 2.0.0-rc1 #1014

CASSGO-86 Remove release date from new releases and add 2.0.0-rc1

CASSGO-86 Remove release date from new releases and add 2.0.0-rc1 #1014

Workflow file for this run

name: Build
on:
push:
branches:
- trunk
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 }}
- name: Run linting
run: make check
- name: Run unit tests
run: make test-unit
integration-cassandra:
timeout-minutes: 15
needs:
- build
name: Integration Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: [ '1.22', '1.23' ]
cassandra_version: [ '4.1.6', '5.0.3' ]
auth: [ "false" ]
compressor: [ "no-compression", "snappy", "lz4" ]
tags: [ "cassandra", "integration", "ccm" ]
proto_version: [ "4", "5" ]
exclude:
- proto_version: "5"
compressor: "snappy"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: Makefile
- name: Set up cache for SDKMAN
uses: actions/cache@v3
with:
path: ~/.sdkman
key: ${{ runner.os }}-sdkman
- name: Set up cache for CCM
uses: actions/cache@v4
with:
path: ~/.ccm/repository
key: ${{ runner.os }}-ccm-${{ matrix.cassandra_version }}
- name: Start cassandra nodes
env:
CASSANDRA_VERSION: ${{ matrix.cassandra_version }}
run: |
make cassandra-start
sleep 30s
- name: Integration tests
env:
CASSANDRA_VERSION: ${{ matrix.cassandra_version }}
TEST_CQL_PROTOCOL: ${{ matrix.proto_version }}
TEST_COMPRESSOR: ${{ matrix.compressor }}
TEST_INTEGRATION_TAGS: ${{ matrix.tags }}
run: |
make test-integration
- name: 'Save ccm logs'
if: 'failure()'
uses: actions/upload-artifact@v4
with:
name: ccm-cluster-cassandra-${{ matrix.cassandra_version }}-go-${{ matrix.go }}-tag-${{ matrix.tags }}-proto-version-${{ matrix.proto_version }}-compressor-${{ matrix.compressor }}
path: /home/runner/.ccm/gocql_integration_test
retention-days: 5
integration-auth-cassandra:
timeout-minutes: 15
needs:
- build
name: Integration Tests with auth
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: [ '1.22', '1.23' ]
cassandra_version: [ '4.0.13' ]
compressor: [ "no-compression", "snappy", "lz4" ]
tags: [ "integration" ]
proto_version: [ "4", "5" ]
exclude:
- proto_version: "5"
compressor: "snappy"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: Makefile
- name: Set up cache for SDKMAN
uses: actions/cache@v3
with:
path: ~/.sdkman
key: ${{ runner.os }}-sdkman
- name: Set up cache for CCM
uses: actions/cache@v4
with:
path: ~/.ccm/repository
key: ${{ runner.os }}-ccm-${{ matrix.cassandra_version }}
- name: Start cassandra nodes
env:
CASSANDRA_VERSION: ${{ matrix.cassandra_version }}
run: |
make cassandra-start
sleep 30s
- name: Integration tests
env:
CASSANDRA_VERSION: ${{ matrix.cassandra_version }}
TEST_CQL_PROTOCOL: ${{ matrix.proto_version }}
TEST_COMPRESSOR: ${{ matrix.compressor }}
TEST_INTEGRATION_TAGS: ${{ matrix.tags }}
run: |
make test-integration-auth