From ab40cda328b259f4aa5cce20589709e18890b273 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 19 Feb 2025 11:39:39 +0300 Subject: [PATCH 1/3] workflows: use ubuntu-latest intead of a fixed version We don't care much about specific one. 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 425f480..8c9c7bb 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -14,7 +14,7 @@ jobs: test_cover: name: Coverage - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest env: CGO_ENABLED: 0 @@ -44,14 +44,14 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ ubuntu-24.04, windows-2022, macos-14 ] + os: [ ubuntu-latest, windows-2022, macos-14 ] go_versions: [ '1.22', '1.23' ] exclude: - os: macos-14 go_versions: '1.22' - os: windows-2022 go_versions: '1.22' - - os: ubuntu-24.04 + - os: ubuntu-latest go_versions: '1.23' fail-fast: false steps: From 40e59552808f07ac7d3f38988bb87f60c6795316 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 19 Feb 2025 11:40:30 +0300 Subject: [PATCH 2/3] workflows: use Go 1.23/1.24 for tests, fix #51 Nothing to change here code-wise, so I'm leaving go.mod as is, but tests should use current versions. 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 8c9c7bb..68262f1 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.23' + go-version: '1.24' cache: true - name: Write coverage profile @@ -45,14 +45,14 @@ jobs: strategy: matrix: os: [ ubuntu-latest, windows-2022, macos-14 ] - go_versions: [ '1.22', '1.23' ] + go_versions: [ '1.23', '1.24' ] exclude: - os: macos-14 - go_versions: '1.22' + go_versions: '1.23' - os: windows-2022 - go_versions: '1.22' - - os: ubuntu-latest go_versions: '1.23' + - os: ubuntu-latest + go_versions: '1.24' fail-fast: false steps: - uses: actions/checkout@v4 From 94e05abf1dc3feaf5f4b8f56b174b7a57904998d Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 19 Feb 2025 11:57:42 +0300 Subject: [PATCH 3/3] workflows: upgrade to CodeQL v3 actions v2 is obsolete and no longer supported. https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated/ 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 68262f1..bd71faf 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -89,7 +89,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. @@ -100,7 +100,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 @@ -114,4 +114,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3