Skip to content

Commit 51682ce

Browse files
committed
ci(cli): update workflow to use GoTestX and exclude cmd from coverage
- Renamed workflow to "CLI Build & Test" for clarity - Added GoTestX installation step (go install github.com/entiqon/cli/cmd/[email protected]) - Updated coverage run to exclude cmd/ (avoids main.go dragging coverage down) - Preserved coverage threshold enforcement at 80% - Kept Codecov upload with token and flag set to cli
1 parent 009e3a3 commit 51682ce

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI CLI
1+
name: CLI Build & Test
22

33
on:
44
push:
@@ -18,9 +18,12 @@ jobs:
1818
with:
1919
go-version: stable
2020

21-
- name: Run tests with coverage
21+
- name: Install GoTestX
22+
run: go install github.com/entiqon/cli/cmd/[email protected]
23+
24+
- name: Run tests with coverage (excluding cmd/)
2225
run: |
23-
go test ./... -covermode=atomic -coverprofile=coverage.out
26+
gotestx -c ./cli/internal/... ./common/... ./db/...
2427
2528
- name: Show coverage %
2629
run: |
@@ -38,6 +41,6 @@ jobs:
3841
uses: codecov/codecov-action@v5
3942
with:
4043
files: ./coverage.out
41-
flags: common
44+
flags: cli
4245
token: ${{ secrets.CODECOV_TOKEN }}
4346
fail_ci_if_error: true

0 commit comments

Comments
 (0)