You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+23-16Lines changed: 23 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
env:
2
+
GO_VERSION: '1.20'
3
+
1
4
name: Meshery NSM
2
5
on:
3
6
push:
@@ -14,14 +17,18 @@ jobs:
14
17
runs-on: ubuntu-latest
15
18
steps:
16
19
- name: Check out code
17
-
uses: actions/checkout@master
20
+
uses: actions/checkout@v3
18
21
with:
19
22
fetch-depth: 1
20
23
- name: Setup Go
21
-
uses: actions/setup-go@v1
24
+
uses: actions/setup-go@v4
25
+
with:
26
+
go-version: ${{ env.GO_VERSION }}
27
+
- name: golangci-lint
28
+
uses: golangci/golangci-lint-action@v3
22
29
with:
23
-
go-version: ${{ secrets.GO_VERSION }}
24
-
- run: GOPROXY=direct GOSUMDB=off go get -u golang.org/x/lint/golint; go list ./... | grep -v /vendor/ | xargs -L1 /home/runner/go/bin/golint -set_exit_status
30
+
version: v1.52
31
+
args: --timeout=5m
25
32
error_check:
26
33
name: Error check
27
34
runs-on: ubuntu-latest
@@ -31,10 +38,10 @@ jobs:
31
38
with:
32
39
fetch-depth: 1
33
40
- name: Setup Go
34
-
uses: actions/setup-go@v1
41
+
uses: actions/setup-go@v4
35
42
with:
36
-
go-version: ${{ secrets.GO_VERSION }}
37
-
- run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go get -u github.com/kisielk/errcheck; /home/runner/go/bin/errcheck -tags draft ./...
43
+
go-version: ${{ env.GO_VERSION }}
44
+
- run: go install github.com/kisielk/errcheck@latest; errcheck -tags draft ./...
38
45
static_check:
39
46
name: Static check
40
47
runs-on: ubuntu-latest
@@ -44,10 +51,10 @@ jobs:
44
51
with:
45
52
fetch-depth: 1
46
53
- name: Setup Go
47
-
uses: actions/setup-go@v1
54
+
uses: actions/setup-go@v4
48
55
with:
49
-
go-version: ${{ secrets.GO_VERSION }}
50
-
- run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go get -u honnef.co/go/tools/cmd/staticcheck; PKGS=$(go list ./... | grep -vF /meshes); /home/runner/go/bin/staticcheck -tags draft -checks all $PKGS # https://staticcheck.io/docs/checks
56
+
go-version: ${{ env.GO_VERSION }}
57
+
- run: go install honnef.co/go/tools/cmd/staticcheck@latest; PKGS=$(go list ./... | grep -vF /meshes); staticcheck -tags draft -checks all $PKGS # https://staticcheck.io/docs/checks
51
58
# vet:
52
59
# name: Vet
53
60
# runs-on: ubuntu-latest
@@ -59,7 +66,7 @@ jobs:
59
66
# - name: Setup Go
60
67
# uses: actions/setup-go@v1
61
68
# with:
62
-
# go-version: ${{ secrets.GO_VERSION }}
69
+
# go-version: ${{ env.GO_VERSION }}
63
70
# - run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go vet -tags draft ./...
64
71
# sec_check:
65
72
# name: Security check
@@ -72,7 +79,7 @@ jobs:
72
79
# - name: Setup Go
73
80
# uses: actions/setup-go@v1
74
81
# with:
75
-
# go-version: ${{ secrets.GO_VERSION }}
82
+
# go-version: ${{ env.GO_VERSION }}
76
83
# - run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go get github.com/securego/gosec/cmd/gosec; /home/runner/go/bin/gosec ./... # https://github.com/securego/gosec
0 commit comments