chore(ci): remove Go versions below 1.24 from CI matrix #58
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: autofix.ci | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| autofix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Install Task | |
| uses: go-task/setup-task@v1 | |
| - uses: actions/setup-go@v6 | |
| with: { go-version-file: 'go.mod' } | |
| - name: Setup go deps | |
| run: | | |
| # Install golangci-lint | |
| curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin | |
| # Install go-task dependencies | |
| go install golang.org/x/tools/cmd/goimports@latest | |
| - name: Run goimports | |
| run: goimports -w . | |
| - name: Run golangci-lint autofix | |
| run: golangci-lint run --fix | |
| - name: Run golangci-lint format | |
| run: golangci-lint format | |
| - name: Run go mod tidy | |
| run: go mod tidy | |
| - name: Run gopls modernize | |
| run: task modernize | |
| - uses: autofix-ci/action@v1 |