File tree 3 files changed +11
-14
lines changed
3 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -12,26 +12,26 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- name : Install Go
15
- uses : actions/setup-go@v2
15
+ uses : actions/setup-go@v3
16
16
with :
17
- go-version : 1.17.x
17
+ go-version : 1.18
18
18
- name : Checkout code
19
19
uses : actions/checkout@v2
20
20
- name : Run linters
21
- uses : golangci/golangci-lint-action@v2
21
+ uses : golangci/golangci-lint-action@v3
22
22
with :
23
- version : v1.29
23
+ version : v1.46.2
24
24
25
25
test :
26
26
strategy :
27
27
matrix :
28
- go-version : [1.17.x ]
28
+ go-version : [1.18 ]
29
29
platform : [ubuntu-latest, macos-latest, windows-latest]
30
30
runs-on : ${{ matrix.platform }}
31
31
steps :
32
32
- name : Install Go
33
33
if : success()
34
- uses : actions/setup-go@v2
34
+ uses : actions/setup-go@v3
35
35
with :
36
36
go-version : ${{ matrix.go-version }}
37
37
- name : Checkout code
@@ -44,16 +44,16 @@ jobs:
44
44
steps :
45
45
- name : Install Go
46
46
if : success()
47
- uses : actions/setup-go@v2
47
+ uses : actions/setup-go@v3
48
48
with :
49
- go-version : 1.17.x
49
+ go-version : 1.18
50
50
- name : Checkout code
51
51
uses : actions/checkout@v2
52
52
- name : Calc coverage
53
53
run : |
54
54
go test -v -covermode=count -coverprofile=coverage.out
55
55
- name : Convert coverage.out to coverage.lcov
56
- uses : jandelgado/gcov2lcov-action@v1.0.6
56
+ uses : jandelgado/gcov2lcov-action@v1
57
57
- name : Coveralls
58
58
uses : coverallsapp/github-action@v1.1.2
59
59
with :
Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- name : Install Go
13
- uses : actions/setup-go@v2
13
+ uses : actions/setup-go@v3
14
14
with :
15
- go-version : 1.17.x
15
+ go-version : 1.18
16
16
- name : Checkout code
17
17
uses : actions/checkout@v2
18
18
- name : Run GoReleaser
42
42
run : |
43
43
VERSION=$(git describe --tags)
44
44
docker build --build-arg "version=$VERSION" --tag ${IMAGE_NAME} .
45
-
46
45
- name : push Docker image
47
46
run : |
48
47
TAG=$(git describe --tags)
52
51
docker push ${REGISTRY}/${IMAGE_NAME}:${GITHUB_SHA}
53
52
docker push ${REGISTRY}/${IMAGE_NAME}:${TAG}
54
53
docker push ${REGISTRY}/${IMAGE_NAME}:latest
55
-
Original file line number Diff line number Diff line change 1
1
# golang ci template using github actions
2
2
3
-
4
3
[ ![ Build Status] ( https://github.com/jandelgado/golang-ci-template-github-actions/workflows/test%20and%20build/badge.svg )] ( https://github.com/jandelgado/golang-ci-template-github-actions/actions?workflow=test%20and%20build )
5
4
[ ![ Coverage Status] ( https://coveralls.io/repos/github/jandelgado/golang-ci-template-github-actions/badge.svg?branch=master )] ( https://coveralls.io/github/jandelgado/golang-ci-template-github-actions?branch=master )
6
5
[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/jandelgado/golang-ci-template-github-actions )] ( https://goreportcard.com/report/github.com/jandelgado/golang-ci-template-github-actions )
You can’t perform that action at this time.
0 commit comments