Skip to content

Commit dc24c7f

Browse files
committed
Add static check analysis to CI
Signed-off-by: Aitor Pérez Cedres <acedres@vmware.com>
1 parent d26125c commit dc24c7f

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

.github/workflows/build_test_linux.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ on:
1010
branches: [ "main" ]
1111

1212
jobs:
13-
1413
build:
1514
runs-on: ubuntu-latest
1615
steps:
1716
- uses: actions/checkout@v3
1817

1918
- name: Set up Go
20-
uses: actions/setup-go@v3
19+
uses: actions/setup-go@v4
2120
with:
2221
go-version: oldstable
2322

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
name: "Static Check Analysis"
3+
4+
on: ["pull_request"]
5+
6+
jobs:
7+
static-check:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 1
13+
14+
- name: Set up Go
15+
uses: actions/setup-go@v4
16+
with:
17+
go-version: 'stable'
18+
19+
- name: Staticcheck
20+
uses: dominikh/staticcheck-action@v1.3.0
21+
with:
22+
version: "2023.1.3"
23+
install-go: false
24+
build-tags: "rabbitmq.stream.test,rabbitmq.stream.e2e"

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/gsantomaggio/rabbitmq-stream-go-client
22

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/golang/mock v1.6.0
@@ -13,7 +13,7 @@ require (
1313
github.com/go-logr/logr v1.2.3 // indirect
1414
github.com/google/go-cmp v0.5.9 // indirect
1515
golang.org/x/net v0.2.0 // indirect
16-
golang.org/x/sys v0.2.0 // indirect
16+
golang.org/x/sys v0.7.0 // indirect
1717
golang.org/x/text v0.4.0 // indirect
1818
gopkg.in/yaml.v3 v3.0.1 // indirect
1919
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w
2727
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
2828
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
2929
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
30-
golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
31-
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
30+
golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU=
31+
golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
3232
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
3333
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
3434
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=

0 commit comments

Comments
 (0)