mirror of
https://github.com/opencontainers/runc.git
synced 2025-09-26 19:41:35 +08:00
Merge pull request #4874 from kolyshkin/ci-run-modernize
ci/validate: add modernize run
This commit is contained in:
8
.github/workflows/validate.yml
vendored
8
.github/workflows/validate.yml
vendored
@@ -48,7 +48,7 @@ jobs:
|
||||
run: |
|
||||
golangci-lint run --config .golangci-extra.yml --new-from-rev=HEAD~1
|
||||
|
||||
go-fix:
|
||||
modernize:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
@@ -65,6 +65,10 @@ jobs:
|
||||
run: |
|
||||
go fix ./...
|
||||
git diff --exit-code
|
||||
- name: run modernize
|
||||
run: |
|
||||
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...
|
||||
git diff --exit-code
|
||||
|
||||
compile-buildtags:
|
||||
runs-on: ubuntu-24.04
|
||||
@@ -260,9 +264,9 @@ jobs:
|
||||
- compile-buildtags
|
||||
- deps
|
||||
- get-images
|
||||
- go-fix
|
||||
- keyring
|
||||
- lint
|
||||
- modernize
|
||||
- release
|
||||
- shellcheck
|
||||
- shfmt
|
||||
|
Reference in New Issue
Block a user