From 5e6034c2056e5588c7f5b32abecfe919f8a04756 Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Mon, 8 Jan 2024 03:08:18 -0700 Subject: [PATCH] [chore] Run unit tests for 1.21 (#30324) I think we weren't running unit tests for Go ~1.21. See https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/7441862453/job/20244563464?pr=30162 as an example. --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 8644ecf4ade2..08cc030c46f5 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -265,7 +265,7 @@ jobs: path: ~/.cache/go-build key: go-test-build-${{ runner.os }}-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - name: Run Unit Tests - if: startsWith( matrix.go-version, '1.19' ) + if: startsWith( matrix.go-version, '~1.21' ) run: make gotest GROUP=${{ matrix.group }} - name: Run Unit Tests With Coverage if: startsWith( matrix.go-version, '~1.20' ) # only run coverage on one version