-
-
Notifications
You must be signed in to change notification settings - Fork 2k
34 lines (29 loc) · 779 Bytes
/
modernize.yml
File metadata and controls
34 lines (29 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
run: go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -test=false ./...