Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: coverage

on:
push:
branches: [main]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
GO_VERSION: 1.24.x

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Go cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-cache-${{ hashFiles('**/go.sum') }}

- name: Compute coverage
run: make coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: go/coverage.out
flags: unittests
fail_ci_if_error: true
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

1 change: 1 addition & 0 deletions go/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage.*
15 changes: 15 additions & 0 deletions go/go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
go 1.24.9

use (
../benchmarks
../examples/ints
../examples/jsonl
../examples/profile
./grpc
./otel
./pdata
./pkg
../otelcol
../stefc
../stefc/generator/testdata
)
Loading
Loading