mirror of
https://github.com/gofiber/fiber.git
synced 2025-09-04 19:35:47 +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@v5
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
# NOTE: Keep this in sync with the version from go.mod
|
|
go-version: "1.25.x"
|
|
cache: false
|
|
|
|
- name: modernize
|
|
run: go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -test=false ./...
|