File tree Expand file tree Collapse file tree 3 files changed +29
-27
lines changed Expand file tree Collapse file tree 3 files changed +29
-27
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,17 @@ name: go-test
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches :
6
+ - master
6
7
pull_request :
7
- branches : [ master ]
8
+ branches :
9
+ - master
8
10
9
11
jobs :
10
-
11
12
build :
12
13
runs-on : ubuntu-latest
13
14
steps :
14
- - uses : actions/checkout@v2
15
+ - uses : actions/checkout@v4
15
16
16
17
- name : Set up Go
17
18
uses : actions/setup-go@v5
30
31
report : ' false'
31
32
chart : ' true'
32
33
amend : ' false'
34
+
Original file line number Diff line number Diff line change 1
1
name : golangci-lint
2
+
2
3
on :
3
4
push :
4
5
tags :
7
8
- master
8
9
- main
9
10
pull_request :
11
+
10
12
jobs :
11
13
golangci :
12
14
name : lint
13
15
runs-on : ubuntu-latest
14
16
steps :
15
- - uses : actions/checkout@v3
17
+ - uses : actions/checkout@v4
18
+
16
19
- uses : actions/setup-go@v5
17
20
with :
18
21
go-version : ' 1.22'
22
+
19
23
- name : golangci-lint
20
- uses : golangci/golangci-lint-action@v3
24
+ uses : golangci/golangci-lint-action@v6
21
25
with :
22
26
version : v1.57.2
27
+
Original file line number Diff line number Diff line change @@ -3,9 +3,8 @@ name: goreleaser
3
3
on :
4
4
push :
5
5
tags :
6
- - " v*"
7
- tags_ignore :
8
- - " *-test"
6
+ - ' v*'
7
+ - ' !*-test'
9
8
10
9
permissions :
11
10
contents : write
@@ -14,15 +13,13 @@ jobs:
14
13
goreleaser :
15
14
runs-on : ubuntu-latest
16
15
steps :
17
- -
18
- name : Checkout
19
- uses : actions/checkout@v2
16
+ - name : Checkout
17
+ uses : actions/checkout@v4
20
18
with :
21
19
fetch-depth : 0
22
20
23
- -
24
- name : Set up Go
25
- uses : actions/setup-go@v2
21
+ - name : Set up Go
22
+ uses : actions/setup-go@v5
26
23
with :
27
24
go-version : 1.22
28
25
@@ -32,24 +29,22 @@ jobs:
32
29
sudo apt install -y gcc gcc-aarch64-linux-gnu musl build-essential
33
30
34
31
- name : Set up Docker Buildx
35
- uses : docker/setup-buildx-action@v2
32
+ uses : docker/setup-buildx-action@v3
36
33
37
- -
38
- name : Docker login
39
- run : |
40
- docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
41
- env :
42
- DOCKER_USERNAME : ${{ secrets.docker_username }}
43
- DOCKER_PASSWORD : ${{ secrets.docker_password }}
34
+ - name : Docker login
35
+ uses : docker/login-action@v3
36
+ with :
37
+ username : ${{ secrets.docker_username }}
38
+ password : ${{ secrets.docker_password }}
44
39
45
- -
46
- name : Run GoReleaser
47
- uses : goreleaser/goreleaser-action@v4
40
+ - name : Run GoReleaser
41
+ uses : goreleaser/goreleaser-action@v6
48
42
with :
49
43
distribution : goreleaser
50
44
version : latest
51
45
args : release --debug
52
46
env :
53
- BUILD_TAG : " latest"
47
+ BUILD_TAG : ' latest'
54
48
GOPATH : ${{ env.GOPATH }}
55
49
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
+
You can’t perform that action at this time.
0 commit comments