Skip to content

Commit ad72128

Browse files
RamLavimaiqueb
authored andcommitted
gitActions: Add 'make vendor' check
Add a step to run 'make vendor' to ensure the vendor directory is up-to-date, failing the workflow if changes are needed. Signed-off-by: Ram Lavi <[email protected]>
1 parent 80e6e1c commit ad72128

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/check.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Go
2424
uses: actions/setup-go@v3
2525
with:
26-
go-version: 1.22
26+
go-version: 1.22.10
2727

2828
- name: Build
2929
run: time make build
@@ -34,6 +34,15 @@ jobs:
3434
version: v1.54.2
3535
args: --timeout 3m --verbose cmd/... pkg/...
3636

37+
- name: Check vendors
38+
run: |
39+
make vendor
40+
if [[ -n "$(git status --porcelain)" ]]; then
41+
echo "Vendor is out-of-date. Please run 'make vendor' locally and commit the changes"
42+
git status --porcelain
43+
exit 1
44+
fi
45+
3746
- name: Test
3847
run: make test
3948

0 commit comments

Comments
 (0)