Commit f6e2186 1 parent bf2f25a commit f6e2186 Copy full SHA for f6e2186
File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 17
17
uses : actions/setup-go@v5
18
18
with :
19
19
go-version : 1.22.4
20
+ - name : Cache Go modules
21
+ uses : actions/cache@v3
22
+ with :
23
+ path : ~/go/pkg/mod
24
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-go-
20
27
- name : Build
21
28
run : go build -v ./...
22
29
30
+ lint :
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v4
34
+ - name : Set up Go
35
+ uses : actions/setup-go@v5
36
+ with :
37
+ go-version : 1.22.4
38
+ - name : Cache Go modules
39
+ uses : actions/cache@v3
40
+ with :
41
+ path : ~/go/pkg/mod
42
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
43
+ restore-keys : |
44
+ ${{ runner.os }}-go-
45
+ - name : Lint
46
+ uses : golangci/golangci-lint-action@v3
47
+ with :
48
+ version : latest
49
+
23
50
test :
24
51
runs-on : ubuntu-latest
25
52
services :
43
70
uses : actions/setup-go@v5
44
71
with :
45
72
go-version : 1.22.4
73
+ - name : Cache Go modules
74
+ uses : actions/cache@v3
75
+ with :
76
+ path : ~/go/pkg/mod
77
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
78
+ restore-keys : |
79
+ ${{ runner.os }}-go-
46
80
- name : Install golang-migrate
47
81
run : go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
48
82
- name : Run Migrations
You can’t perform that action at this time.
0 commit comments