mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
ci: use another way to check if source code formatted
Signed-off-by: Kirill Danshin <kirill@danshin.pro>
This commit is contained in:
+1
-2
@@ -15,12 +15,11 @@ matrix:
|
||||
fast_finish: true
|
||||
|
||||
before_install:
|
||||
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
|
||||
- go get -t -v ./...
|
||||
- go get -v golang.org/x/tools/cmd/goimports
|
||||
|
||||
script:
|
||||
- test -z $(goimports -l $GO_FILES)
|
||||
- test -z $(goimports -d .)
|
||||
# build test for supported platforms
|
||||
- GOOS=linux go build
|
||||
- GOOS=darwin go build
|
||||
|
||||
Reference in New Issue
Block a user