We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8654f81 commit 2f10812Copy full SHA for 2f10812
.github/workflows/test.yml
@@ -44,13 +44,15 @@ jobs:
44
git diff --exit-code go.mod go.sum
45
go mod verify
46
47
- - name: Test
+ - name: Run tests with coverage report
48
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
+ go test ./... -v -timeout=1h -coverprofile=coverage.out -covermode=atomic
53
54
- - name: Upload codecov
55
- run: bash <(curl -s https://codecov.io/bash)
56
+ - name: Upload coverage to Codecov
+ uses: codecov/codecov-action@v5
+ env:
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
+ with:
+ slug: v2fly/v2ray-core
57
+ verbose: true
58
+ fail_ci_if_error: true
0 commit comments