From 647087a4c18f9381b522bc33cf5ed614ca7bc6b6 Mon Sep 17 00:00:00 2001 From: Faye Amacker <33205765+fxamacker@users.noreply.github.com> Date: Mon, 30 Sep 2024 09:17:34 -0500 Subject: [PATCH] Add concurrency group to ci.yml While at it, bump go-version to go1.22 and go1.23 and remove older versions from list. --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e643ba9..c7bff57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,10 @@ on: - 'feature/**' - 'v**' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true + jobs: # Test on various OS with default Go version. @@ -31,7 +35,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - go-version: ['1.20', 1.21, 1.22] + go-version: ['1.22', '1.23'] steps: - name: Install Go