Add go fix
Signed-off-by: Александр Мелентьев <aleksandr4842@ya.ru>
This commit is contained in:
parent
884c62423e
commit
94c13e13b8
1 changed files with 19 additions and 0 deletions
19
.github/workflows/pr.yml
vendored
19
.github/workflows/pr.yml
vendored
|
|
@ -41,3 +41,22 @@ jobs:
|
||||||
|
|
||||||
- name: Run go test
|
- name: Run go test
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
|
|
||||||
|
gofix:
|
||||||
|
name: Go fix
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v6
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
|
||||||
|
- name: Run go fix
|
||||||
|
run: go fix ./...
|
||||||
|
|
||||||
|
- name: Check git diff
|
||||||
|
id: git-diff
|
||||||
|
run: git diff --exit-code
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue