-
Notifications
You must be signed in to change notification settings - Fork 67
88 lines (73 loc) · 2.16 KB
/
codecov.yml
File metadata and controls
88 lines (73 loc) · 2.16 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Codecov Code Coverage
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
codecov_test:
name: Run Unit and Integration Tests with Coverage
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.26.1'
cache-dependency-path: '**/go.sum'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Gateway Unit Tests
continue-on-error: true
run: |
cd gateway
make test
- name: CLI Unit Tests
continue-on-error: true
run: |
cd cli/src
make test
- name: Build coverage-instrumented images
run: |
cd gateway
make build-coverage
- name: Build sample-service
run: |
cd samples/sample-service
make build
- name: Run Gateway integration tests
continue-on-error: true
run: |
cd gateway
make test-integration
- name: Build CLI binary
run: |
cd cli/it
make build-cli-coverage
- name: Run CLI integration tests
continue-on-error: true
run: |
cd cli/it
make test
- name: List generated coverage files
run: |
echo "=== Finding all coverage.txt files ==="
find . -name "*coverage.txt" -type f
- name: Upload unit test coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: '**/unit-test-coverage.txt'
flags: unit
- name: Upload Gateway integration test coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: gateway/it/coverage/output/txt
flags: integration
- name: Upload CLI integration test coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: cli/it/coverage/output/txt
flags: cli-integration