From 26d97e7165d2ee67d5fd7932b9c7397437fabbe7 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 19 Feb 2025 11:46:00 +0300 Subject: [PATCH 1/3] workflows: use ubuntu-latest instead of 24.04 We don't care about specific version here. Signed-off-by: Roman Khimov --- .github/workflows/go.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6bf969e..a7e1a15 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -18,7 +18,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-24.04, windows-2022, macos-14] + os: [ubuntu-latest, windows-2022, macos-14] go: [ '1.22', '1.23' ] exclude: # Only latest Go version for Windows and MacOS. @@ -27,7 +27,7 @@ jobs: - os: macos-14 go: '1.22' # Exclude latest Go version for Ubuntu as Coverage uses it. - - os: ubuntu-24.04 + - os: ubuntu-latest go: '1.23' fail-fast: false steps: @@ -45,7 +45,7 @@ jobs: cover: name: Coverage - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest env: CGO_ENABLED: 1 From f09b3380656d53e3e2b493bee728e3af4c07e91f Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 19 Feb 2025 11:46:59 +0300 Subject: [PATCH 2/3] workflows: use Go 1.23/1.24 for tests, fix #26 Nothing to change here code-wise, so go.mod is left as is. Signed-off-by: Roman Khimov --- .github/workflows/go.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a7e1a15..56b0821 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,16 +19,16 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-2022, macos-14] - go: [ '1.22', '1.23' ] + go: [ '1.23', '1.24' ] exclude: # Only latest Go version for Windows and MacOS. - os: windows-2022 - go: '1.22' + go: '1.23' - os: macos-14 - go: '1.22' + go: '1.23' # Exclude latest Go version for Ubuntu as Coverage uses it. - os: ubuntu-latest - go: '1.23' + go: '1.24' fail-fast: false steps: - name: Setup go @@ -58,7 +58,7 @@ jobs: uses: actions/setup-go@v5 with: cache: true - go-version: 1.23 + go-version: 1.24 - name: Test and write coverage profile run: go test -coverprofile=coverage.txt -covermode=atomic ./... From 86d61d9c25b1a9aef016f67b1e6fa345699107e2 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 19 Feb 2025 11:56:42 +0300 Subject: [PATCH 3/3] workflows: upgrade to CodeQL action v3 v2 is obsolete and unsupported now. Signed-off-by: Roman Khimov --- .github/workflows/go.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 56b0821..12407b3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -90,12 +90,12 @@ jobs: uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3