File tree 6 files changed +5
-43
lines changed
6 files changed +5
-43
lines changed Original file line number Diff line number Diff line change 23
23
uses : actions/setup-go@v2
24
24
with :
25
25
go-version : 1.17
26
- - name : Install goimports
27
- run : go install golang.org/x/tools/cmd/goimports@latest
28
26
- name : Cache
29
27
uses : actions/cache@v2
30
28
with :
61
59
uses : actions/setup-go@v2
62
60
with :
63
61
go-version : 1.17
64
- - name : Install goimports
65
- run : go install golang.org/x/tools/cmd/goimports@latest
66
62
- name : Cache
67
63
uses : actions/cache@v2
68
64
with :
Original file line number Diff line number Diff line change 17
17
uses : actions/setup-go@v2
18
18
with :
19
19
go-version : 1.17
20
- - name : Install goimports
21
- run : go install golang.org/x/tools/cmd/goimports@latest
22
20
- name : Cache
23
21
uses : actions/cache@v2
24
22
with :
Original file line number Diff line number Diff line change 13
13
uses : actions/setup-go@v2
14
14
with :
15
15
go-version : 1.17
16
- - name : Install goimports
17
- run : go install golang.org/x/tools/cmd/goimports@latest
18
16
- name : Cache
19
17
uses : actions/cache@v2
20
18
with :
38
36
uses : actions/setup-go@v2
39
37
with :
40
38
go-version : 1.17
41
- - name : Install goimports
42
- run : go install golang.org/x/tools/cmd/goimports@latest
43
39
- name : Cache
44
40
uses : actions/cache@v2
45
41
with :
Original file line number Diff line number Diff line change 4
4
branches : [ main ]
5
5
jobs :
6
6
build-and-test :
7
- runs-on : ubuntu-latest
7
+ strategy :
8
+ matrix :
9
+ os : [ubuntu-latest, macos-latest]
10
+ runs-on : ${{ matrix.os }}
8
11
steps :
9
12
- run : echo "🐧 This job is now running on a ${{ runner.os }}-${{ runner.arch }} server hosted by GitHub!"
10
13
- name : Checkout
13
16
uses : actions/setup-go@v2
14
17
with :
15
18
go-version : 1.17
16
- - name : Install goimports
17
- run : go install golang.org/x/tools/cmd/goimports@latest
18
19
- name : Cache
19
20
uses : actions/cache@v2
20
21
with :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ md5-plugin.%:
65
65
66
66
.PHONY : fmt
67
67
fmt : # # Run 'go fmt' & goimports against code.
68
+ go install golang.org/x/tools/cmd/goimports@latest
68
69
goimports -local=" github.com/merico-dev/stream" -d -w cmd
69
70
goimports -local=" github.com/merico-dev/stream" -d -w pkg
70
71
goimports -local=" github.com/merico-dev/stream" -d -w internal
You can’t perform that action at this time.
0 commit comments