Skip to content

Commit

Permalink
some more tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Dec 13, 2023
1 parent 56587b1 commit 9246070
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test Coverage
name: Coverage
on:
pull_request:
push:
Expand All @@ -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
Expand All @@ -31,15 +36,15 @@ 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 \
./...
- 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
Expand All @@ -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

0 comments on commit 9246070

Please sign in to comment.