-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 971 Bytes
/
coverage.yml
File metadata and controls
40 lines (33 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Test Coverage
on:
push:
branches: [main]
paths-ignore:
- 'docs/**'
- '*.md'
workflow_dispatch:
jobs:
coverage:
# Run on macOS for accurate coverage reporting (~82%)
# - say provider is ready with full features
# - espeak provider has limited coverage on macOS (tests skip)
# - Linux compatibility is ensured by ci.yml matrix strategy
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
check-latest: true
- name: Install Go modules
run: go mod download
- name: Verify dependencies
run: go mod verify
- name: Run tests with coverage
run: bash scripts/test-coverage.sh
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}