Skip to content

Commit ce0ab9e

Browse files
committed
ci: add go-fix job
Taken from runc. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 9b77d24 commit ce0ab9e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/validate.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,16 @@ jobs:
3636
run: |
3737
golangci-lint run --config .golangci-extra.yml --new-from-rev=HEAD~1
3838
39+
go-fix:
40+
runs-on: ubuntu-24.04
41+
steps:
42+
- uses: actions/checkout@v4
43+
with:
44+
fetch-depth: 2
45+
- uses: actions/setup-go@v5
46+
with:
47+
go-version: "${{ env.GO_VERSION }}"
48+
- name: run go fix
49+
run: |
50+
go fix ./...
51+
git diff --exit-code

0 commit comments

Comments
 (0)