Fixes in tuple handling + output format improvements #392
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
on: | |
pull_request: | |
branches: | |
- mainline | |
push: | |
branches: | |
- mainline | |
schedule: | |
- cron: '30 15 * * 1,3' | |
name: build-analyze-test | |
env: | |
GIT_SUBMODULE_STRATEGY: recursive | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go-version: ['1.21', '1.22' ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Setup dependencies | |
run: | | |
go mod download | |
go install golang.org/x/vuln/cmd/[email protected] | |
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | |
go install github.com/gordonklaus/ineffassign@latest | |
go install golang.org/x/lint/golint@latest | |
go install golang.org/x/tools/cmd/deadcode@latest | |
- name: Run basic analyses | |
run: | | |
go vet ./... | |
gocyclo -ignore "test|internal/pointer|internal/typeparams" -over 15 . | |
ineffassign ./... | |
golint -set_exit_status -min_confidence 0.9 ./... | |
- name: Run vulnerability checking | |
run: | | |
govulncheck ./... | |
- name: Build all executables | |
run: | | |
go build -o bin/compare cmd/compare/*.go | |
go build -o bin/defer cmd/defer/*.go | |
go build -o bin/dependencies cmd/dependencies/*.go | |
go build -o bin/maypanic cmd/maypanic/*.go | |
go build -o bin/packagescan cmd/packagescan/*.go | |
go build -o bin/reachability cmd/reachability/*.go | |
go build -o bin/render cmd/render/*.go | |
go build -o bin/static-commands cmd/static-commands/*.go | |
go build -o bin/statistics cmd/statistics/*.go | |
go build -o bin/taint cmd/taint/*.go | |
go build -o bin/argot-cli cmd/argot-cli/*.go | |
- name: Test | |
run: go test -coverprofile=coverage.txt -covermode count ./analysis/... |