File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments