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: |
|
run: |
|
||||||
golangci-lint run --config .golangci-extra.yml --new-from-rev=HEAD~1
|
golangci-lint run --config .golangci-extra.yml --new-from-rev=HEAD~1
|
||||||
|
|
||||||
go-fix:
|
modernize:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
@@ -65,6 +65,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
go fix ./...
|
go fix ./...
|
||||||
git diff --exit-code
|
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:
|
compile-buildtags:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
@@ -260,9 +264,9 @@ jobs:
|
|||||||
- compile-buildtags
|
- compile-buildtags
|
||||||
- deps
|
- deps
|
||||||
- get-images
|
- get-images
|
||||||
- go-fix
|
|
||||||
- keyring
|
- keyring
|
||||||
- lint
|
- lint
|
||||||
|
- modernize
|
||||||
- release
|
- release
|
||||||
- shellcheck
|
- shellcheck
|
||||||
- shfmt
|
- shfmt
|
||||||
|
Reference in New Issue
Block a user