Skip to content

Commit 882b581

Browse files
committed
Added go mod tidy and uncommited changes jobs to test workflow
1 parent 0e58c86 commit 882b581

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,17 @@ jobs:
3434
restore-keys: |
3535
${{ runner.os }}-go1.25-
3636
37+
- name: Checking go mod tidy
38+
run: |
39+
go mod tidy -diff
40+
3741
- name: Build
3842
run: make all -B
3943

4044
- name: Test
4145
run: make test
46+
47+
- name: Check for uncommitted changes
48+
run: |
49+
err_msg="Changes found!!! Run 'make all -B' and commit changes"
50+
git -c color.ui=always diff --exit-code || (>&2 echo "${err_msg}" && exit 1)

0 commit comments

Comments
 (0)