File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 4040 working-directory : ./tools
4141 if : env.FILES_CHANGED == 'true'
4242 run : make generate_mocks
43+ - name : Fix import order issues
44+ run : goimports -l -w .
4345 - uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
4446 if : env.FILES_CHANGED == 'true'
4547 with :
Original file line number Diff line number Diff line change 3939 run : |
4040 npm install
4141 npm run ci
42- - run : go install golang.org/x/tools/cmd/ goimports@v0.21.0
42+ - run : make install- goimports
4343 - working-directory : ./tools
4444 run : |
4545 export PATH=${PATH}:`go env GOPATH`/bin
Original file line number Diff line number Diff line change 11SOURCE_FILES? =./...
22GOLANGCI_VERSION =v2.1.6 # Also update golangci-lint GH action in pr.yml when updating this version
33
4- GOIMPORTS_VERSION =v0.21.0
5- COVERAGE =coverage.out
6-
74export GO111MODULE := on
85export PATH := ./bin:$(PATH )
96
2017
2118.PHONY : test
2219test :
23- go test $(SOURCE_FILES ) -coverprofile $( COVERAGE ) - timeout=30s -parallel=4 -cover -race
20+ go test $(SOURCE_FILES ) -timeout=30s -parallel=4 -race
2421
2522.PHONY : test-examples
2623test-examples :
@@ -48,7 +45,7 @@ install-golangci-lint:
4845
4946.PHONY : install-goimports
5047install-goimports :
51- go install golang.org/x/tools/cmd/goimports@$( GOIMPORTS_VERSION )
48+ go install golang.org/x/tools/cmd/goimports@latest
5249
5350.PHONY : tools
5451tools : install-golangci-lint install-goimports
Original file line number Diff line number Diff line change @@ -20,4 +20,3 @@ npm exec -c "replace-in-file '/$OLD_PACKAGE/g' '$NEW_PACKAGE' $VERSION_UPDATE_PA
2020
2121echo " Add preview version to examples go.mod"
2222(cd " $examples_path " && go get $NEW_PACKAGE )
23-
You can’t perform that action at this time.
0 commit comments