Upgrade to github.com/pion/dtls/v3 #874
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.20+ | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "^1.20" # 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" |