Skip to content

Commit 9fda57d

Browse files
committed
CI: fix test and test coverage
1 parent 8654f81 commit 9fda57d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@ jobs:
4444
git diff --exit-code go.mod go.sum
4545
go mod verify
4646
47-
- name: Test
47+
- name: Run tests with coverage report
4848
run: |
49-
export PATH=$(go env GOPATH)/bin:${PATH}
50-
go install -v github.com/ory/go-acc@latest
51-
go-acc --covermode=atomic -o=coverage.txt ./... -- -timeout=30m
52-
shell: bash
49+
go test ./... -v -timeout=1h -coverprofile=coverage.out -covermode=atomic
5350
54-
- name: Upload codecov
55-
run: bash <(curl -s https://codecov.io/bash)
56-
shell: bash
51+
- name: Upload coverage to Codecov
52+
uses: codecov/codecov-action@v5
53+
env:
54+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
55+
with:
56+
slug: v2fly/v2ray-core
57+
verbose: true
58+
fail_ci_if_error: true

0 commit comments

Comments
 (0)