Merge pull request #27 from electric-saw/feat/add-config-topics #26
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
name: pre-commit | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22 | |
id: go | |
- name: Install go dependencies | |
run: | | |
go install golang.org/x/tools/cmd/goimports@latest | |
go install github.com/securego/gosec/v2/cmd/gosec@latest | |
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | |
go install github.com/go-critic/go-critic/cmd/gocritic@latest | |
go install honnef.co/go/tools/cmd/staticcheck@latest | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] |