From cff619b3bce91b90b77d6b0d63e6d9055c681511 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 26 Feb 2025 16:32:33 +0300 Subject: [PATCH 1/3] workflows: use ubuntu-latest for testing Signed-off-by: Roman Khimov --- .github/workflows/run_tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 16ce263..a8012e8 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -15,7 +15,7 @@ env: jobs: test_cover: name: Coverage - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest env: CGO_ENABLED: 0 @@ -45,7 +45,7 @@ jobs: strategy: matrix: go_versions: [ '1.22', '1.23' ] - os: [ubuntu-22.04, windows-2022, macos-14] + os: [ubuntu-latest, windows-2022, macos-14] exclude: # Only latest Go version for Windows and MacOS. - os: windows-2022 @@ -53,7 +53,7 @@ jobs: - os: macos-14 go_versions: '1.22' # Exclude latest Go version for Ubuntu as Coverage uses it. - - os: ubuntu-20.04 + - os: ubuntu-latest go_versions: '1.23' fail-fast: false steps: From ae223c33d887515258fc578251d1a62dc9a2743b Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 26 Feb 2025 16:37:00 +0300 Subject: [PATCH 2/3] workflows: switch to CodeQL v3 v2 is obsolete and no longer supported. Signed-off-by: Roman Khimov --- .github/workflows/run_tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index a8012e8..c6789f1 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -91,7 +91,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + 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. @@ -102,7 +102,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@v2 + uses: github/codeql-action/autobuild@v3 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -116,4 +116,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 From 23a4100eb00832909cf848fbb6b6c6baec3f18e0 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 26 Feb 2025 16:37:48 +0300 Subject: [PATCH 3/3] workflows: switch to Go 1.23/1.24 for testing 1.22 is obsolete. Signed-off-by: Roman Khimov --- .github/workflows/run_tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index c6789f1..20df7ea 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -27,7 +27,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.23 + go-version: 1.24 - name: Write coverage profile run: go test -v ./... -coverprofile=./coverage.txt -covermode=atomic @@ -44,17 +44,17 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go_versions: [ '1.22', '1.23' ] + go_versions: [ '1.23', '1.24' ] os: [ubuntu-latest, windows-2022, macos-14] exclude: # Only latest Go version for Windows and MacOS. - os: windows-2022 - go_versions: '1.22' + go_versions: '1.23' - os: macos-14 - go_versions: '1.22' + go_versions: '1.23' # Exclude latest Go version for Ubuntu as Coverage uses it. - os: ubuntu-latest - go_versions: '1.23' + go_versions: '1.24' fail-fast: false steps: - uses: actions/checkout@v4