Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/git.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,23 @@ on: [pull_request]
jobs:
block-fixup:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- name: Block Fixup Commit Merge
uses: 13rac1/[email protected]

go-mod-tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that we have more than one go.mod file in FSC:
fabric-smart-client (main) $ find . -name "go.mod"
./platform/fabric/services/state/cc/query/go.mod
./go.mod
./tools/go.mod

Does the check done recursively or we need to check only the one in the root?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make tidy runs go mod tidy in all those directories.

cache-dependency-path: "**/*.sum"
- run: make tidy
- name: Check for diffs
run: |
git diff --exit-code || {
echo "Please run 'make tidy' and commit the changes";
exit 1;
}