File tree Expand file tree Collapse file tree 11 files changed +2728
-390
lines changed Expand file tree Collapse file tree 11 files changed +2728
-390
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,16 @@ jobs:
13
13
fail-fast : false
14
14
matrix :
15
15
go :
16
- - " 1.20"
17
- - " 1.21"
16
+ - ' 1.22'
17
+ - ' 1.23'
18
+ - ' 1.24'
18
19
name : run tests with go version ${{ matrix.go }}
19
20
steps :
20
21
- name : install go
21
22
uses : actions/setup-go@v5
22
23
with :
23
- go-version : ${{ matrix.go }}
24
+ go-version : ' ${{ matrix.go }}'
25
+ check-latest : true
24
26
25
27
- name : checkout code
26
28
uses : actions/checkout@v4
@@ -29,26 +31,30 @@ jobs:
29
31
run : make build
30
32
31
33
- name : Test
32
- env :
33
- COVERALLS_TOKEN : ${{ secrets.COVERALLS_TOKEN }}
34
34
run : |
35
35
make cover
36
-
37
- - name : Coveralls
38
- if : (matrix.go == '1.21')
39
- env :
40
- COVERALLS_TOKEN : ${{ secrets.COVERALLS_TOKEN }}
41
- run : |
42
- if [[ -n "$COVERALLS_TOKEN" ]]; then
43
- make coveralls
44
- fi
36
+
37
+ - name : Send coverage
38
+ uses : shogo82148/actions-goveralls@v1
39
+ with :
40
+ path-to-profile : coverage.out
41
+ flag-name : Go-${{ matrix.go }}
42
+ parallel : true
45
43
46
44
- name : Upload coverage
47
- if : (matrix.go == '1.21')
48
45
uses : actions/upload-artifact@v4
49
46
with :
50
- name : coverage
47
+ name : coverage.${{ matrix.go }}
51
48
path : coverage.*
52
49
53
50
- name : Assert no changes
54
51
run : make assert-no-changes
52
+
53
+ # notifies that all test jobs are finished.
54
+ finish :
55
+ needs : build
56
+ runs-on : ubuntu-latest
57
+ steps :
58
+ - uses : shogo82148/actions-goveralls@v1
59
+ with :
60
+ parallel-finished : true
Original file line number Diff line number Diff line change 17
17
- name : Set up Go
18
18
uses : actions/setup-go@v5
19
19
with :
20
- go-version : " >=1.20 .2"
20
+ go-version : " >=1.23 .2"
21
21
- name : Ensure Go
22
22
run : go version
23
23
Original file line number Diff line number Diff line change 15
15
- name : Set up Go
16
16
uses : actions/setup-go@v5
17
17
with :
18
- go-version : " >=1.20 .2"
18
+ go-version : " >=1.23 .2"
19
19
- name : Ensure Go
20
20
run : go version
21
21
Original file line number Diff line number Diff line change 16
16
/bin
17
17
/coverage
18
18
vendor /
19
- coverage.out
20
- coverage.html
19
+ coverage. *
21
20
22
21
dist /
23
- .idea /
22
+ .idea /
23
+ .DS_Store
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ COVERAGEDIR= coverage
10
10
SERVICE =local
11
11
12
12
ifdef GITHUB_ACTIONS
13
- SERVICE =github-actions
13
+ SERVICE =github
14
14
endif
15
15
16
16
DATE := $(shell date -u '+% FT% T% z')
@@ -99,23 +99,23 @@ bin/goveralls: go.sum
99
99
$(call goinstall,github.com/mattn/goveralls)
100
100
101
101
# snapshots: snapshots_1.17
102
- snapshots : snapshots_1.21
102
+ snapshots : snapshots_1.24
103
103
104
104
snapshots_% : clean
105
105
echo " ##### updating snapshots for golang $* #####"
106
106
docker run -i -t -w /app -v $(shell pwd) :/app --entrypoint /bin/sh golang:$* -c ' ./update-snapshots.sh || true'
107
107
108
108
.PHONY : ci
109
- ci : docker_1.20
110
- ci : docker_1.21
109
+ ci : docker_1.23
110
+ ci : docker_1.24
111
111
112
112
docker_% :
113
113
echo " ##### testing golang $* #####"
114
114
docker run -i -t -w /app -v $(shell pwd) :/app --entrypoint /bin/sh golang:$* -c ' make clean && make'
115
115
116
116
.PHONY : pullimages
117
- pullimages : pullimage_1.20
118
- pullimages : pullimage_1.21
117
+ pullimages : pullimage_1.23
118
+ pullimages : pullimage_1.24
119
119
120
120
pullimage_% :
121
121
docker pull golang:$*
You can’t perform that action at this time.
0 commit comments