Update README with further links and credits #24
This file contains hidden or 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
| name: Static Analysis | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| static-analysis: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.23 | |
| - name: Install lint tools | |
| run: | | |
| go install golang.org/x/lint/golint@latest | |
| go install github.com/gordonklaus/ineffassign@latest | |
| go install github.com/client9/misspell/cmd/misspell@latest | |
| go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | |
| - name: Check gofmt | |
| run: test -z "$(gofmt -l .)" || (echo "Code is not gofmt'ed" && exit 1) | |
| - name: Run go vet | |
| run: go vet ./... | |
| - name: Run gocyclo | |
| run: gocyclo -over 15 . | |
| - name: Run ineffassign | |
| run: ineffassign ./... | |
| - name: Run misspell | |
| run: misspell -error ./... |