Skip to content

Commit

Permalink
Merge e8515dc into 8bfb58e
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed May 8, 2022
2 parents 8bfb58e + e8515dc commit 7817ca3
Show file tree
Hide file tree
Showing 11 changed files with 405 additions and 244 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.16.x, 1.17.x, 1.18.x ]
go-version: [ 1.17.x, 1.18.x ]
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -19,16 +19,18 @@ jobs:
run: |
source .github/workflows/github.sh
section "Checking license headers"
go get -u github.com/google/addlicense
go get github.com/google/addlicense
go install github.com/google/addlicense
GOPATH=`go env GOPATH`
shopt -s globstar
$GOPATH/bin/addlicense -c "BitMaelum Authors" -l mit -y 2021 -check internal/**/*.go pkg/**/*.go tools/**/*.go cmd/**/*.go
$GOPATH/bin/addlicense -c "BitMaelum Authors" -l mit -y 2022 -check internal/**/*.go pkg/**/*.go tools/**/*.go cmd/**/*.go
- name: Go imports
run: |
source .github/workflows/github.sh
section "Checking go imports"
go get -u golang.org/x/tools/cmd/goimports
go mod download golang.org/x/tools
go install golang.org/x/tools/cmd/goimports
OUT=`goimports -l .`
echo $OUT
test -z "$OUT"
Expand All @@ -40,10 +42,11 @@ jobs:
go vet ./...
- name: Go static check
if: ${{ matrix.go-version != '1.18.x' }}
run: |
source .github/workflows/github.sh
section "Static analysis"
go get honnef.co/go/tools/cmd/staticcheck
go install honnef.co/go/tools/cmd/staticcheck@2020.2.1
GOPATH=`go env GOPATH`
$GOPATH/bin/staticcheck ./...
Expand All @@ -52,14 +55,16 @@ jobs:
source .github/workflows/github.sh
section "Checking ineffassign"
go get -u github.com/gordonklaus/ineffassign
go install github.com/gordonklaus/ineffassign
GOPATH=`go env GOPATH`
$GOPATH/bin/ineffassign ./...
- name: Go linting
run: |
source .github/workflows/github.sh
section "Checking for lint"
go get -u golang.org/x/lint/golint
go mod download golang.org/x/lint
go install golang.org/x/lint/golint
GOPATH=`go env GOPATH`
$GOPATH/bin/golint -set_exit_status ./...
Expand All @@ -68,6 +73,7 @@ jobs:
source .github/workflows/github.sh
section "Checking cyclomatic complexity"
go get -u github.com/fzipp/gocyclo/cmd/gocyclo
go install github.com/fzipp/gocyclo/cmd/gocyclo
GOPATH=`go env GOPATH`
$GOPATH/bin/gocyclo -over 15 .
Expand Down
59 changes: 32 additions & 27 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,59 +1,64 @@
module github.com/bitmaelum/bitmaelum-suite

go 1.13
go 1.16

require (
github.com/Freman/eventloghook v0.0.0-20191003051739-e4d803b6b48b
github.com/alicebob/miniredis/v2 v2.14.3
github.com/c2h5oh/datasize v0.0.0-20200825124411-48ed595a09d2
github.com/cloudflare/gokey v0.1.0
github.com/coreos/go-semver v0.3.0
github.com/danieljoos/wincred v1.1.2 // indirect
github.com/davecgh/go-spew v1.1.1
github.com/emersion/go-imap v1.0.6
github.com/emersion/go-message v0.14.1
github.com/emersion/go-smtp v0.14.0
github.com/ernesto-jimenez/httplogger v0.0.0-20150224132909-86cc44f6150a
github.com/gabriel-vasile/mimetype v1.2.0
github.com/gdamore/tcell/v2 v2.2.0
github.com/gen2brain/beeep v0.0.0-20200526185328-e9c15c258e28
github.com/go-redis/redis/v7 v7.4.0
github.com/google/go-cmp v0.5.4 // indirect
github.com/google/uuid v1.2.0
github.com/gookit/color v1.3.8
github.com/gopherjs/gopherjs v0.0.0-20210202160940-bed99a852dfe // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/emersion/go-imap v1.2.1
github.com/emersion/go-message v0.15.0
github.com/emersion/go-sasl v0.0.0-20211008083017-0b9dcfb154ac // indirect
github.com/emersion/go-smtp v0.15.0
github.com/ernesto-jimenez/httplogger v0.0.0-20220128121225-117514c3f345
github.com/felixge/httpsnoop v1.0.2 // indirect
github.com/gabriel-vasile/mimetype v1.4.0
github.com/gdamore/tcell/v2 v2.5.1
github.com/gen2brain/beeep v0.0.0-20220402123239-6a3042f4b71a
github.com/go-redis/redis/v7 v7.4.1
github.com/google/uuid v1.3.0
github.com/gookit/color v1.5.0
github.com/gorilla/handlers v1.5.1
github.com/gorilla/mux v1.8.0
github.com/hashicorp/golang-lru v0.5.4
github.com/jessevdk/go-flags v1.4.0
github.com/jessevdk/go-flags v1.5.0
github.com/jorrizza/ed2curve25519 v0.1.0
github.com/kardianos/service v1.2.0
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/kardianos/service v1.2.1
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-sqlite3 v2.0.3+incompatible
github.com/mborders/artifex v0.4.0
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/mileusna/spf v0.9.1
github.com/miekg/dns v1.1.48 // indirect
github.com/mileusna/spf v0.9.3
github.com/mitchellh/go-homedir v1.1.0
github.com/nightlyone/lockfile v1.0.0
github.com/olekukonko/tablewriter v0.0.5
github.com/onsi/ginkgo v1.14.2 // indirect
github.com/onsi/gomega v1.10.4 // indirect
github.com/rivo/tview v0.0.0-20210312174852-ae9464cc3598
github.com/rivo/tview v0.0.0-20220307222120-9994674d60a8
github.com/sirupsen/logrus v1.8.1
github.com/spf13/afero v1.5.1
github.com/spf13/cobra v1.1.3
github.com/spf13/afero v1.8.2
github.com/spf13/cobra v1.4.0
github.com/stretchr/objx v0.1.1 // indirect
github.com/stretchr/testify v1.7.0
github.com/tyler-smith/go-bip39 v1.1.0
github.com/vtolstov/jwt-go v3.2.0+incompatible
github.com/x-cray/logrus-prefixed-formatter v0.5.2
github.com/xhit/go-str2duration/v2 v2.0.0
github.com/zalando/go-keyring v0.1.1
go.etcd.io/bbolt v1.3.5
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 // indirect
github.com/zalando/go-keyring v0.2.1
go.etcd.io/bbolt v1.3.6
golang.org/x/crypto v0.0.0-20220507011949-2cf3adece122
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/sys v0.0.0-20210313202042-bd2e13477e9c // indirect
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect
golang.org/x/term v0.0.0-20220411215600-e5f449aeb171
golang.org/x/tools v0.1.10 // indirect
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
)

0 comments on commit 7817ca3

Please sign in to comment.