Skip to content

Update github workflows to use Go 1.24 #696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 154 additions & 46 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,50 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.24'
cache: false

- uses: actions/cache@v4
with:
path: |
~/.cache/golangci-lint
key: ${{ runner.os }}-golangci-lint-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golangci-lint-
timeout-minutes: 2

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v6
with:
version: v1.57.2
version: v1.64.5

build:
name: Build Source
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.21]
go: ['1.24']
steps:
- name: Setup
uses: actions/setup-go@v2
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v2
cache: false

- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
timeout-minutes: 2

- name: Build
run: make build-src

Expand All @@ -51,18 +74,30 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.21]
go: ['1.24']
steps:
- name: Setup
uses: actions/setup-go@v2
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v2
cache: false

- uses: actions/cache/restore@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
timeout-minutes: 2

- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.8.0
uses: supercharge/mongodb-github-action@1.12.0
with:
mongodb-replica-set: replicaset

- name: Unit test
env:
MONGODB_TEST_CXN: mongodb://localhost:27017
Expand All @@ -73,7 +108,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.21]
go: ['1.24']
fix-version:
- fix40
- fix41
Expand All @@ -84,16 +119,28 @@ jobs:
- fix50sp1
- fix50sp2
steps:
- name: Setup
uses: actions/setup-go@v2
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v2
cache: false

- uses: actions/cache/restore@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
timeout-minutes: 2

- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

- name: Acceptance test
env:
GO111MODULE: on
Expand All @@ -107,7 +154,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.21]
go: ['1.24']
fix-version:
- fix40
- fix41
Expand All @@ -118,16 +165,28 @@ jobs:
- fix50sp1
- fix50sp2
steps:
- name: Setup
uses: actions/setup-go@v2
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v2
cache: false

- uses: actions/cache/restore@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
timeout-minutes: 2

- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

- name: Acceptance test
env:
GO111MODULE: on
Expand All @@ -141,7 +200,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.21]
go: ['1.24']
fix-version:
- fix40
- fix41
Expand All @@ -152,20 +211,33 @@ jobs:
- fix50sp1
- fix50sp2
steps:
- name: Setup
uses: actions/setup-go@v2
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v2
cache: false

- uses: actions/cache/restore@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
timeout-minutes: 2

- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.8.0
uses: supercharge/mongodb-github-action@1.12.0
with:
mongodb-replica-set: replicaset

- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

- name: Acceptance test
env:
GO111MODULE: on
Expand All @@ -180,7 +252,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.21]
go: ['1.24']
fix-version:
- fix40
- fix41
Expand All @@ -191,16 +263,28 @@ jobs:
- fix50sp1
- fix50sp2
steps:
- name: Setup
uses: actions/setup-go@v2
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v2
cache: false

- uses: actions/cache/restore@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
timeout-minutes: 2

- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

- name: Acceptance test
env:
GO111MODULE: on
Expand All @@ -214,7 +298,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.21]
go: ['1.24']
fix-version:
- fix42
- fix43
Expand All @@ -223,16 +307,28 @@ jobs:
- fix50sp1
- fix50sp2
steps:
- name: Setup
uses: actions/setup-go@v2
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v2
cache: false

- uses: actions/cache/restore@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
timeout-minutes: 2

- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

- name: Acceptance test
env:
GO111MODULE: on
Expand All @@ -246,27 +342,39 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.21]
go: ['1.24']
fix-version:
- fix44
- fix50
- fix50sp1
- fix50sp2
steps:
- name: Setup
uses: actions/setup-go@v2
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v2
cache: false

- uses: actions/cache/restore@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
timeout-minutes: 2

- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

- name: Acceptance test
env:
GO111MODULE: on
FIX_TEST: ${{ matrix.fix-version }}
STORE_TYPE: memory
ACCEPTANCE_SET: nextexpectedseqnum
run: make generate-ci && make build && make $FIX_TEST
run: make generate-ci && make build && make $FIX_TEST
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -54,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3