From 79f48d731e1fcaf56eb4b6bcc650371260a07126 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Thu, 8 Feb 2024 13:49:37 -0800 Subject: [PATCH] [chore] fix workflow to run all versions (#31118) Signed-off-by: Alex Boten --- .github/workflows/build-and-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 7437fd6363a7..41285f2bc79e 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -281,13 +281,13 @@ 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.21' ) + if: startsWith( matrix.go-version, '~1.20' ) != true # every other version 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 run: make gotest-with-cover GROUP=${{ matrix.group }} - uses: actions/upload-artifact@v3 - if: startsWith( matrix.go-version, '~1.20' ) # only run coverage on one version + if: startsWith( matrix.go-version, '~1.20' ) # only upload one artifact with: name: coverage-artifacts path: ${{ matrix.group }}-coverage.txt