From f9052fa849f5106bb9162b6372ca17a1f125642e Mon Sep 17 00:00:00 2001 From: Steve Xu Date: Mon, 8 Apr 2024 16:21:39 +0800 Subject: [PATCH] ci: update codecov --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8badd45..2d67c80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,13 +6,15 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 with: go-version: 1.18.1 - name: Lint run: make lint && make test-js - name: Run coverage run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + - name: Upload coverage + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }}