mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-09-13 22:38:59 +00:00
Extend CI workflow with gofmt
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -12,6 +12,8 @@ jobs:
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.14
|
||||
- name: Ensure gofmt
|
||||
run: test -z "$(gofmt -s -d .)"
|
||||
- name: Ensure go.mod is already tidied
|
||||
run: go mod tidy && git diff --no-patch --exit-code
|
||||
- name: Run unit tests
|
||||
|
Reference in New Issue
Block a user