Skip to content

Commit ef764fc

Browse files
authored
Merge pull request #1978 from kube-logging/feat/use-test-coverage-action
chore(ci): update go-test-coverage to utilize source-dir parameter
2 parents 09e0708 + 4a9f8d8 commit ef764fc

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ jobs:
3131
run: make generate-test-coverage
3232

3333
- name: Test Coverage
34-
uses: vladopajic/go-test-coverage@f5435e92b0a4496013d599a34389f4fbd9985a01 # v2.12.1
34+
uses: vladopajic/go-test-coverage@992aa9921a42c39d1fe0015d32593f0820589586 # v2.13.0
3535
with:
3636
config: ./.testcoverage.yml
37+
source-dir: ./
3738

3839
lint:
3940
name: Lint

.github/workflows/e2e.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,11 @@ jobs:
110110
# SHARD: ${{ matrix.SHARD }}
111111
# SHARDS: ${{ matrix.SHARDS }}
112112

113-
# This is a workaround as the action does not support setting working directory
114113
- name: Run coverage report
115-
run: make test-e2e-coverage-report-ci
114+
uses: vladopajic/go-test-coverage@992aa9921a42c39d1fe0015d32593f0820589586 # v2.13.0
115+
with:
116+
profile: ./build/_test_coverage/coverage_e2e.out
117+
source-dir: ./
116118

117119
- name: Archive Test Results
118120
if: always()

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CONTROLLER_GEN_VERSION := 0.17.2
1111
GOLANGCI_LINT_VERSION := 1.64.6
1212

1313
# renovate: datasource=go depName=github.com/vladopajic/go-test-coverage/v2 versioning=semver
14-
GO_TEST_COVERAGE_VERSION := 2.12.1
14+
GO_TEST_COVERAGE_VERSION := 2.13.0
1515

1616
# renovate: datasource=github-releases depName=norwoodj/helm-docs versioning=semver
1717
HELM_DOCS_VERSION = 1.14.2

0 commit comments

Comments
 (0)