mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-09-21 11:17:17 +00:00
chore: gofmt fix and enable in CI (#414)
* gofmt the files Signed-off-by: Peter Pan <Peter.Pan@daocloud.io> * add UT and goFMT to PR Gate (Github Action for PR) Signed-off-by: Peter Pan <Peter.Pan@daocloud.io> --------- Signed-off-by: Peter Pan <Peter.Pan@daocloud.io> Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
8
.github/workflows/test.yaml
vendored
8
.github/workflows/test.yaml
vendored
@@ -23,5 +23,9 @@ jobs:
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
- name: Unit Test
|
||||
run: make test
|
||||
|
||||
- name: Fmt Test
|
||||
run: fmtFiles=$(make fmt); if [ "$fmtFiles" != "" ];then exit 1; fi
|
||||
|
||||
|
Reference in New Issue
Block a user