This is an automated email from the ASF dual-hosted git repository.

proost pushed a commit to branch ci-report-test-coverage
in repository https://gitbox.apache.org/repos/asf/datasketches-go.git

commit ad0d66440ca75eb53169abbf8b366596f143c8c2
Author: proost <[email protected]>
AuthorDate: Fri Jan 23 01:21:23 2026 +0900

    ci: report test coverage
---
 .github/workflows/go.yml             | 10 ++++++++--
 .gitignore                           |  2 ++
 .github/workflows/go.yml => Makefile | 36 ++++--------------------------------
 3 files changed, 14 insertions(+), 34 deletions(-)

diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index ddd8713..3e99a9a 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -43,5 +43,11 @@ jobs:
     - name: Build
       run: go build -v ./...
 
-    - name: Test
-      run: go test -v ./...
+    - name: Run Test With coverage
+      run: make test
+
+    - name: Upload coverage to Coveralls
+      uses: coverallsapp/github-action@v2
+      with:
+        file: coverage.out
+        format: golang
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0c51afb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+.idea
+coverage.out
diff --git a/.github/workflows/go.yml b/Makefile
similarity index 55%
copy from .github/workflows/go.yml
copy to Makefile
index ddd8713..6392637 100644
--- a/.github/workflows/go.yml
+++ b/Makefile
@@ -1,4 +1,3 @@
-#
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.
@@ -13,35 +12,8 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-#
-
-# This workflow will build a golang project
-# For more information see: 
https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
-
-name: Go
-
-on:
-  push:
-    branches: [ "main" ]
-  pull_request:
-    branches: [ "main" ]
-
-jobs:
-
-  build:
-    runs-on: ubuntu-latest
-    strategy:
-      matrix:
-        go-version: [ '1.24.x' ]
-    steps:
-    - uses: actions/checkout@v3
-
-    - name: Set up Go ${{ matrix.go-version }}
-      uses: actions/setup-go@v4
-      with:
-        go-version: ${{ matrix.go-version }}
-    - name: Build
-      run: go build -v ./...
 
-    - name: Test
-      run: go test -v ./...
+.PHONY: test
+test:
+       rm -rf coverage.out
+       go test ./... -coverprofile=coverage.out


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to