File tree Expand file tree Collapse file tree 1 file changed +25
-20
lines changed
Expand file tree Collapse file tree 1 file changed +25
-20
lines changed Original file line number Diff line number Diff line change 2929 - name : Set up Go
3030 uses : actions/setup-go@v4
3131 with :
32- go-version : ' 1.20 '
33-
32+ go-version : ' 1.23 '
33+
3434 - name : Check formatting
3535 run : |
3636 if [ -n "$(go fmt ./...)" ]; then
@@ -44,27 +44,32 @@ jobs:
4444 os :
4545 - macos-latest
4646 - ubuntu-24.04
47+ go :
48+ - ' 1.20'
49+ - ' 1.21'
50+ - ' 1.22'
51+ - ' 1.23'
4752 runs-on : ${{matrix.os}}
4853 steps :
49- - uses : actions/checkout@v4
54+ - uses : actions/checkout@v4
5055
51- - name : Set up Go
52- uses : actions/setup-go@v4
53- with :
54- go-version : ' 1.23 '
56+ - name : Set up Go
57+ uses : actions/setup-go@v4
58+ with :
59+ go-version : ${{matrix.go}}
5560
56- - name : Build
57- run : go build -v ./...
61+ - name : Build
62+ run : go build -v ./...
5863
59- - name : Test with coverage
60- run : go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
64+ - name : Test with coverage
65+ run : go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
6166
62- - name : Upload coverage to Codecov
63- if : matrix.os == 'ubuntu-24.04'
64- uses : codecov/codecov-action@v4
65- with :
66- token : ${{ secrets.CODECOV_TOKEN }}
67- file : ./coverage.txt
68- flags : unittests
69- name : codecov-umbrella
70- fail_ci_if_error : true
67+ - name : Upload coverage to Codecov
68+ if : matrix.os == 'ubuntu-24.04' && matrix.go == '1.23 '
69+ uses : codecov/codecov-action@v4
70+ with :
71+ token : ${{ secrets.CODECOV_TOKEN }}
72+ file : ./coverage.txt
73+ flags : unittests
74+ name : codecov-umbrella
75+ fail_ci_if_error : true
You can’t perform that action at this time.
0 commit comments