From d7bdd6e43091560cde1b8d7fb1662e325d53df29 Mon Sep 17 00:00:00 2001 From: Xavier Goffin Date: Mon, 13 Jan 2025 15:58:14 +0100 Subject: [PATCH 1/2] go.mod: update to non-ancient version; .github/workflows/*.yml: update action versions; add auto-release --- go.mod | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index af5dd9d..22bcdc2 100644 --- a/go.mod +++ b/go.mod @@ -1,17 +1,23 @@ module github.com/upfluence/cql -go 1.16 +go 1.21 require ( - github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/gocql/gocql v0.0.0-20201215165327-e49edf966d90 - github.com/golang/snappy v0.0.2 // indirect - github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/stretchr/testify v1.6.1 github.com/upfluence/errors v0.2.2 github.com/upfluence/log v0.0.3 +) + +require ( + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/golang/snappy v0.0.2 // indirect + github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd // indirect gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect + gopkg.in/inf.v0 v0.9.1 // indirect + gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c // indirect ) replace github.com/coreos/bbolt v1.3.4 => go.etcd.io/bbolt v1.3.4 From c5a5e61299c45a60544e9ce26987a8d05dfebcb3 Mon Sep 17 00:00:00 2001 From: Xavier Goffin Date: Tue, 14 Jan 2025 13:57:18 +0100 Subject: [PATCH 2/2] .github/workflows/ci.yml: no cache on setup go --- .github/workflows/ci.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03e1f07..0ee3920 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - go: [ '1.23.x' ] + go: [ '1.23.x', '1.22.x' ] services: cassandra: image: upfluence/cassandra @@ -29,14 +29,14 @@ jobs: - 9042:9042 steps: - name: Install Go ${{ matrix.go }} - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} - + cache: false - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache Modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-v1-${{ hashFiles('**/go.sum') }} @@ -46,3 +46,9 @@ jobs: run: go test -p 1 -v ./... env: CASSANDRA_KEYSPACE: cql_test + + release: + needs: test + if: github.ref == 'refs/heads/master' + uses: upfluence/actions/.github/workflows/lib-any-release.yml@master + secrets: inherit