From 92460704796816e4fdcfea39fcae478798522faa Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Wed, 13 Dec 2023 16:46:35 +0100 Subject: [PATCH] some more tweaking --- .github/workflows/coverage.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7dfe3806..6eefd71e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,4 +1,4 @@ -name: Test Coverage +name: Coverage on: pull_request: push: @@ -15,8 +15,13 @@ jobs: matrix: runs-on: [macos-latest, ubuntu-latest, windows-latest] cgo-enabled: [0, 1] + tags: + - '' # Default behavior + - 'go1.99' # Distant future, will likely forever be unsupported + - 'datadog.no_waf' # Explicit WAF disable runs-on: ${{ matrix.runs-on }} + name: Test (${{ matrix.runs-on }}, CGO_ENABLED=${{ matrix.cgo-enabled }}, -tags="${{ matrix.tags }}") steps: - uses: actions/checkout@v3 @@ -31,7 +36,7 @@ jobs: shell: bash # Also on Windows!! run: |- mkdir -p coverage - gotestsum -- \ + gotestsum -- -tags='${{ matrix.tags }}' \ -v -shuffle=on \ -coverprofile coverage/${{ matrix.runs-on }}-${{ matrix.cgo-enabled }}.gocov \ -covermode atomic \ @@ -39,7 +44,7 @@ jobs: - uses: actions/upload-artifact@v3 with: name: coverprofiles - path: coverage/${{ matrix.runs-on }}-${{ matrix.cgo-enabled }}.gocov + path: coverage/${{ matrix.runs-on }}-${{ matrix.cgo-enabled }}-${{ matrix.tags }}.gocov report: needs: test @@ -60,4 +65,4 @@ jobs: - name: Create report run: |- echo "## Coverage Report" >> $GITHUB_STEP_SUMMARY - echo coverage.svg >> $GITHUB_STEP_SUMMARY + cat coverage.svg >> $GITHUB_STEP_SUMMARY