Skip to content

Update observation API #642

Update observation API

Update observation API #642

Workflow file for this run

# Run static analysis checks
name: Static Analysis
on:
pull_request:
workflow_dispatch:
jobs:
analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- 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 ./...