From bfebcb9efe89196f3b35ea276af12af83f53020a Mon Sep 17 00:00:00 2001
From: b97tsk <b97tsk@gmail.com>
Date: Sat, 2 Sep 2023 08:00:00 +0800
Subject: [PATCH] update build workflow

---
 .github/workflows/build.yml | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 10081ee7..38830c92 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -11,17 +11,19 @@ on:
     paths:
       - '**.go'
 jobs:
-  test:
+  build:
     name: Test with coverage
     runs-on: ubuntu-latest
     steps:
       - name: Checkout
         uses: actions/checkout@v3
       - name: Setup Go
-        uses: actions/setup-go@v3
+        uses: actions/setup-go@v4
         with:
-          go-version: '1.19'
+          go-version: '1.21'
       - name: Run tests
-        run: go test -race -coverprofile=coverage.txt -coverpkg=./... ./...
+        run: go test -race -coverprofile=profile.cov -coverpkg=./... ./...
       - name: Send coverage
-        uses: codecov/codecov-action@v3
+        uses: shogo82148/actions-goveralls@v1
+        with:
+          path-to-profile: profile.cov