From 03ebb91f63324e385f2202a84f12eb2f7fcbc0fd Mon Sep 17 00:00:00 2001 From: Kamaleshwar Date: Sun, 20 Oct 2024 10:36:43 +0200 Subject: [PATCH 1/3] [-] ignore cmd and extensions from coverage --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 160e3ef..201c5ea 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -26,7 +26,7 @@ jobs: - name: Tests run: | go install github.com/mattn/goveralls@latest - go test -covermode atomic -coverprofile=covprofile ./... + go test -covermode atomic -coverprofile=covprofile $(go list ./... | grep -v /cmd/ | grep -v /extensions/) - name: Send coverage uses: shogo82148/actions-goveralls@v1 From 7c03b7169163396647db5d01abf4f749b300b6b5 Mon Sep 17 00:00:00 2001 From: Kamaleshwar Date: Sun, 20 Oct 2024 10:41:28 +0200 Subject: [PATCH 2/3] skip cmd --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 201c5ea..a8898cd 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -26,7 +26,7 @@ jobs: - name: Tests run: | go install github.com/mattn/goveralls@latest - go test -covermode atomic -coverprofile=covprofile $(go list ./... | grep -v /cmd/ | grep -v /extensions/) + go test -covermode atomic -coverprofile=covprofile $(go list ./... | grep -v cmd/ | grep -v /extensions/) - name: Send coverage uses: shogo82148/actions-goveralls@v1 From a9fccfa94a467ff9f45e205e9423195caeb6d9e2 Mon Sep 17 00:00:00 2001 From: Kamaleshwar Date: Sun, 20 Oct 2024 10:42:43 +0200 Subject: [PATCH 3/3] skip cmd --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a8898cd..f70a6c7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -26,7 +26,7 @@ jobs: - name: Tests run: | go install github.com/mattn/goveralls@latest - go test -covermode atomic -coverprofile=covprofile $(go list ./... | grep -v cmd/ | grep -v /extensions/) + go test -covermode atomic -coverprofile=covprofile $(go list ./... | grep -v /cmd | grep -v /extensions/) - name: Send coverage uses: shogo82148/actions-goveralls@v1