Merge pull request #4314 from gofiber/dependabot/github_actions/relea… #2657
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: Modernize Lint | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "**/*.md" | |
| - "**/*_msgp*.go" | |
| pull_request: | |
| paths-ignore: | |
| - "**/*.md" | |
| - "**/*_msgp*.go" | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| checks: write | |
| jobs: | |
| modernize: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| # NOTE: Keep this in sync with the version from go.mod | |
| go-version: "1.25.x" | |
| cache: false | |
| - name: modernize | |
| # Pinned: gopls v0.22.0 requires Go >= 1.26; we still build on Go 1.25. | |
| run: go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@v0.21.1 -test=false ./... |