From 6848eccdba2540de818015c8c0aad15c931f3666 Mon Sep 17 00:00:00 2001 From: wanghaochen2024 Date: Sun, 8 Dec 2024 04:10:31 +0000 Subject: [PATCH 1/3] Fix unit tests break --- .github/workflows/go.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 35b5a01..67a62df 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,8 +5,8 @@ jobs: test: strategy: matrix: - go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x] - os: [ubuntu-latest, macos-latest] + go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x, 1.23.x] + os: [ubuntu-latest, macos-13, windows-latest] runs-on: ${{ matrix.os }} steps: @@ -31,7 +31,7 @@ jobs: run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... - name: Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: token: ${{secrets.CODECOV_TOKEN}} file: coverage.txt From 00ca1b24470d13346a3e80e0da2eb814df07553a Mon Sep 17 00:00:00 2001 From: wanghaochen2024 Date: Sun, 8 Dec 2024 04:11:43 +0000 Subject: [PATCH 2/3] Update test command --- .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 67a62df..0b11729 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -28,7 +28,7 @@ jobs: run: go build -v . - name: Test - run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... + run: go test -v -race -coverprofile='coverage.txt' -covermode=atomic ./... - name: Codecov uses: codecov/codecov-action@v5 From d73add7cb108d58063dc8c8561bd4308a65b688c Mon Sep 17 00:00:00 2001 From: wanghaochen2024 Date: Sun, 8 Dec 2024 04:18:29 +0000 Subject: [PATCH 3/3] Fix GitHub Action warnings --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0b11729..b7084b0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x, 1.23.x] - os: [ubuntu-latest, macos-13, windows-latest] + os: [ubuntu-24.04, macos-13, windows-latest] runs-on: ${{ matrix.os }} steps: @@ -34,6 +34,6 @@ jobs: uses: codecov/codecov-action@v5 with: token: ${{secrets.CODECOV_TOKEN}} - file: coverage.txt + files: coverage.txt flags: unittests name: codecov-umbrella