File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -12,30 +12,30 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
15
- - name : Set up Go 1.14
15
+ - name : Set up Go 1.18
16
16
uses : actions/setup-go@v1
17
17
with :
18
- go-version : 1.14
18
+ go-version : 1.18
19
19
id : go
20
20
21
21
- name : Check out code into the Go module directory
22
22
uses : actions/checkout@v2
23
23
24
- - name : Get dependencies
25
- run : go vet ./...
26
-
27
24
- name : Install dependencies
28
25
run : make install
29
26
27
+ - name : Go Vet
28
+ run : go vet ./...
29
+
30
30
- name : Go Test
31
31
run : make test
32
-
32
+
33
33
push :
34
34
name : Push Docker image to Github Packages
35
35
runs-on : ubuntu-latest
36
36
needs : build
37
37
if : github.event_name != 'pull_request'
38
- steps :
38
+ steps :
39
39
- name : Checkout
40
40
uses : actions/checkout@v2
41
41
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ jobs:
18
18
- name : Setup Go environment
19
19
uses : actions/setup-go@v2
20
20
with :
21
- go-version : 1.14.4 # optional
21
+ go-version : 1.18 # optional
22
22
23
23
- name : Build Dingdongbot
24
24
run : |
25
- go vet ./...
26
25
make install
26
+ go vet ./...
27
27
make test
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ all: install bot
3
3
4
4
.PHONY : install
5
5
install :
6
- go get -u golang.org/x/lint/golint
6
+ go install golang.org/x/lint/golint@latest
7
7
8
8
.PHONY : bot
9
9
bot :
You can’t perform that action at this time.
0 commit comments