From 2f10812ecf43b78e1bf6e1d34ebfaac35ac5119f Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Wed, 10 Sep 2025 19:44:09 +0800 Subject: [PATCH] CI: fix test and test coverage (#3515) --- .github/workflows/test.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 46977c9c3..9700310b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,13 +44,15 @@ jobs: git diff --exit-code go.mod go.sum go mod verify - - name: Test + - name: Run tests with coverage report run: | - export PATH=$(go env GOPATH)/bin:${PATH} - go install -v github.com/ory/go-acc@latest - go-acc --covermode=atomic -o=coverage.txt ./... -- -timeout=30m - shell: bash + go test ./... -v -timeout=1h -coverprofile=coverage.out -covermode=atomic - - name: Upload codecov - run: bash <(curl -s https://codecov.io/bash) - shell: bash + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + with: + slug: v2fly/v2ray-core + verbose: true + fail_ci_if_error: true