mirror of
https://github.com/gofiber/fiber.git
synced 2025-07-27 12:40:11 +00:00
35 lines
663 B
YAML
35 lines
663 B
YAML
name: Modernize Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
paths:
|
|
- "**.go"
|
|
- "!**/*_msgp*.go"
|
|
pull_request:
|
|
paths:
|
|
- "**.go"
|
|
- "!**/*_msgp*.go"
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
checks: write
|
|
|
|
jobs:
|
|
modernize:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
# NOTE: Keep this in sync with the version from go.mod
|
|
go-version: "1.24.x"
|
|
cache: false
|
|
|
|
- name: modernize
|
|
run: go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -test=false ./...
|