You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+78-6Lines changed: 78 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,8 @@ jobs:
32
32
timeout-minutes: 25
33
33
permissions:
34
34
contents: read
35
+
code-quality: write
36
+
pull-requests: read
35
37
strategy:
36
38
fail-fast: false
37
39
matrix:
@@ -218,16 +220,17 @@ jobs:
218
220
set -o pipefail
219
221
# Sanitize the test group name for use in filename
220
222
SAFE_NAME=$(echo "${{ matrix.test-group.name }}" | sed 's/[^a-zA-Z0-9]/-/g' | sed 's/--*/-/g')
223
+
echo "safe_name=${SAFE_NAME}" >> "$GITHUB_OUTPUT"
221
224
222
225
if [ -z "${{ matrix.test-group.pattern }}" ]; then
223
226
# Catch-all group: run with -skip to exclude tests matched by other groups
224
227
if [ -n "${{ matrix.test-group.skip_pattern || '' }}" ]; then
225
-
go test -v -parallel=8 -timeout=10m -tags 'integration' -skip '${{ matrix.test-group.skip_pattern }}' -json ${{ matrix.test-group.packages }} | tee "test-result-integration-${SAFE_NAME}.json"
228
+
go test -v -parallel=8 -timeout=10m -tags 'integration' -coverprofile="coverage-integration-${SAFE_NAME}.out" -skip '${{ matrix.test-group.skip_pattern }}' -json ${{ matrix.test-group.packages }} | tee "test-result-integration-${SAFE_NAME}.json"
226
229
else
227
-
go test -v -parallel=8 -timeout=10m -tags 'integration' -json ${{ matrix.test-group.packages }} | tee "test-result-integration-${SAFE_NAME}.json"
230
+
go test -v -parallel=8 -timeout=10m -tags 'integration' -coverprofile="coverage-integration-${SAFE_NAME}.out" -json ${{ matrix.test-group.packages }} | tee "test-result-integration-${SAFE_NAME}.json"
228
231
fi
229
232
else
230
-
go test -v -parallel=8 -timeout=10m -tags 'integration' -run '${{ matrix.test-group.pattern }}' -json ${{ matrix.test-group.packages }} | tee "test-result-integration-${SAFE_NAME}.json"
233
+
go test -v -parallel=8 -timeout=10m -tags 'integration' -coverprofile="coverage-integration-${SAFE_NAME}.out" -run '${{ matrix.test-group.pattern }}' -json ${{ matrix.test-group.packages }} | tee "test-result-integration-${SAFE_NAME}.json"
0 commit comments