File tree Expand file tree Collapse file tree 1 file changed +26
-5
lines changed
Expand file tree Collapse file tree 1 file changed +26
-5
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,13 @@ jobs:
1616 - uses : actions/checkout@v3
1717 with :
1818 fetch-depth : 2
19+
1920 - uses : actions/setup-go@v3
2021 with :
2122 go-version : ' 1.25'
23+
2224 - name : Run tests with data race detection
2325 run : go test -race -coverprofile=coverage.txt -covermode=atomic ./...
24- - name : Upload coverage reports to Codecov
25- uses : codecov/codecov-action@v5
26- with :
27- token : ${{ secrets.CODECOV_TOKEN }}
2826 test :
2927 strategy :
3028 matrix :
3735 uses : actions/setup-go@v3
3836 with :
3937 go-version : ${{ matrix.go-version }}
38+
4039 - name : Checkout code
41- uses : actions/checkout@v3
40+ uses : actions/checkout@v4
41+
4242 - name : Run tests
4343 run : go test -v -covermode=count ./...
44+ coverage :
45+ runs-on : ubuntu-latest
46+ steps :
47+ - name : Checkout
48+ uses : actions/checkout@v4
49+ with :
50+ fetch-depth : 2
51+
52+ - name : Set up Go
53+ uses : actions/setup-go@v5
54+
55+ - name : Install dependencies
56+ run : go mod download
57+
58+ - name : Run tests
59+ run : go test -coverprofile=coverage.txt
60+
61+ - name : Upload results to Codecov
62+ uses : codecov/codecov-action@v5
63+ with :
64+ token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments