Skip to content

Commit

Permalink
Fix ci error
Browse files Browse the repository at this point in the history
Signed-off-by: “huazhongming” <[email protected]>
  • Loading branch information
CrazyHZM committed Nov 11, 2024
1 parent 655267c commit e1dc305
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 26 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/layotto-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v2
- id: set-matrix
run: sh ./etc/script/resolve-modules.sh
run: |
echo "Resolving modules in $(pwd)"
PATHS=$(find . -not -path "*/faas/*" -type f -name go.mod -printf '{"workdir":"%h"},')
echo "::set-output name=matrix::{\"include\":[${PATHS%?}]}"
golangci-lint:
name: "Go CI Linter"
needs: [style-check,resolve-modules]
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/proto-checker.yml

This file was deleted.

9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,12 @@ test:
modtidy:
@echo "===========> Running go codes format"
go mod tidy

.PHONY: workspace
workspace: ## check if workspace is clean and committed.
workspace: go.style

.PHONY: go.style
go.style:
@echo "===========> Running go style check"
@$(MAKE) format && git status && [[ -z `git status -s` ]] || echo -e "\n${RED}Error: there are uncommitted changes after formatting all the code. ${GREEN}\nHow to fix it:${NO_COLOR} please 'make format' and then use git to commit all those changed files. "

0 comments on commit e1dc305

Please sign in to comment.