3434 - name : golangci-lint (telemetry)
3535 working-directory : telemetry
3636 run : go run "$GOLANGCI_LINT" run --config "$GITHUB_WORKSPACE/.golangci.yml" ./...
37- - name : golangci-lint (telemetry/slogadapter )
38- working-directory : telemetry/slogadapter
37+ - name : golangci-lint (telemetry/slog )
38+ working-directory : telemetry/slog
3939 run : go run "$GOLANGCI_LINT" run --config "$GITHUB_WORKSPACE/.golangci.yml" ./...
4040 - name : golangci-lint (telemetry/otel)
4141 working-directory : telemetry/otel
@@ -44,34 +44,14 @@ jobs:
4444 working-directory : telemetry/datadog
4545 run : go run "$GOLANGCI_LINT" run --config "$GITHUB_WORKSPACE/.golangci.yml" ./...
4646
47- test :
48- strategy :
49- fail-fast : false
50- matrix :
51- go : ["1.25.x", "1.26.x"]
52- os : [ubuntu-latest, macos-latest, windows-latest]
53- runs-on : ${{ matrix.os }}
54- steps :
55- - uses : actions/checkout@v6
56- - uses : actions/setup-go@v6
57- with :
58- go-version : ${{ matrix.go }}
59- cache-dependency-path : " **/go.sum"
60- - name : test -race (state)
61- working-directory : state
62- run : go test -race ./...
63- - name : test -race (telemetry)
64- working-directory : telemetry
65- run : go test -race ./...
66- - name : test -race (telemetry/slogadapter)
67- working-directory : telemetry/slogadapter
68- run : go test -race ./...
69- - name : test -race (telemetry/otel)
70- working-directory : telemetry/otel
71- run : go test -race ./...
72- - name : test -race (telemetry/datadog)
73- working-directory : telemetry/datadog
74- run : go test -race ./...
47+ # The race-test matrix lives in a reusable workflow so its legs render as a
48+ # single collapsible tree in the checks UI ("tests / test (1.25.x, …)") rather
49+ # than as flat top-level checks. Keep the module list in sync with the lint,
50+ # vuln, and coverage jobs below.
51+ tests :
52+ uses : ./.github/workflows/test.yml
53+ with :
54+ modules : " state telemetry telemetry/slog telemetry/otel telemetry/datadog"
7555
7656 vuln :
7757 runs-on : ubuntu-latest
8767 - name : govulncheck (telemetry)
8868 working-directory : telemetry
8969 run : go run "$GOVULNCHECK" ./...
90- - name : govulncheck (telemetry/slogadapter )
91- working-directory : telemetry/slogadapter
70+ - name : govulncheck (telemetry/slog )
71+ working-directory : telemetry/slog
9272 run : go run "$GOVULNCHECK" ./...
9373 - name : govulncheck (telemetry/otel)
9474 working-directory : telemetry/otel
@@ -123,8 +103,8 @@ jobs:
123103 echo "total coverage: ${pct}% (threshold ${THRESHOLD}%)"
124104 awk -v p="$pct" -v t="$THRESHOLD" 'BEGIN { exit (p+0 < t+0) ? 1 : 0 }' \
125105 || { echo "::error::coverage ${pct}% is below the ${THRESHOLD}% threshold"; exit 1; }
126- - name : coverage gate (telemetry/slogadapter )
127- working-directory : telemetry/slogadapter
106+ - name : coverage gate (telemetry/slog )
107+ working-directory : telemetry/slog
128108 run : |
129109 go test -covermode=atomic -coverprofile=coverage.out ./...
130110 pct=$(go tool cover -func=coverage.out | awk '/^total:/ {sub(/%/,"",$3); print $3}')
0 commit comments