Skip to content

Commit

Permalink
[chore] fix workflow to run all versions (#31118)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten authored Feb 8, 2024
1 parent 3dc311b commit 79f48d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79f48d7

Please sign in to comment.