Interface must be UP and RUNNING for testing #692
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run static analysis checks | |
name: Static Analysis | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go 1.18+ | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "^1.18" # The Go version to download (if necessary) and use. | |
check-latest: true | |
- run: go version | |
- name: Run go vet | |
run: go vet ./... | |
- name: Install and run gocyclo | |
run: | | |
export PATH=${PATH}:`go env GOPATH`/bin | |
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | |
gocyclo -over 15 -ignore ".pb(.gw)?.go$|_test.go$|wsproxy" . || echo "gocyclo detected too complex functions" | |
# Disable aligncheck until it is compatible with golang v1.18 | |
# - name: Install and run aligncheck | |
# run: | | |
# go get -u gitlab.com/opennota/check/cmd/aligncheck@latest | |
# aligncheck ./... | |
# Disable structslop until it is compatible with golang v1.18 | |
# - name: Install and run structslop | |
# run: | | |
# export PATH=${PATH}:`go env GOPATH`/bin | |
# go install github.com/orijtech/structslop/cmd/structslop@latest | |
# structslop ./... |