refactor: Phase 1 - Remove duplicate cmd/fix/iris.go #1764
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: GolangCI Lint | |
| on: | |
| push: | |
| paths: | |
| - '**.go' | |
| - '.golangci.yml' | |
| pull_request: | |
| jobs: | |
| lint: | |
| name: Run golangci-lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.25 | |
| - name: Download Go module dependencies | |
| run: go mod download | |
| - name: Run golangci-lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: latest | |
| args: --timeout=5m --config=.golangci.yml | |
| - name: Check code formatting | |
| run: | | |
| if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then | |
| echo "::warning::The following files are not properly formatted:" | |
| gofmt -s -l . | |
| fi | |
| - name: Run go vet | |
| run: go vet ./... | |
| - name: Check for inefficient assignments | |
| run: | | |
| go install github.com/gordonklaus/ineffassign@latest | |
| ineffassign ./... |