From 2ebe549b990bf75c20485190ba61e0a87f9303de Mon Sep 17 00:00:00 2001 From: Fs02 Date: Sat, 15 Aug 2026 13:05:50 +0700 Subject: [PATCH] fix: update goreleaser flag to --clean and update codecov to v7 --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68863ce..ce604db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,6 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b29dcf..add1101 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,9 @@ jobs: run: go test -race ./... - name: Coverage run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... - if: matrix.go == 1.19 && matrix.os == 'ubuntu-latest' + if: matrix.go == 1.21 && matrix.os == 'ubuntu-latest' - name: Codecov - uses: codecov/codecov-action@v5 - if: matrix.go == 1.19 && matrix.os == 'ubuntu-latest' + uses: codecov/codecov-action@v7 + if: matrix.go == 1.21 && matrix.os == 'ubuntu-latest' + with: + token: ${{ secrets.CODECOV_TOKEN }}