-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: add for vendor check fix for #1072
Signed-off-by: Sam Yuan <[email protected]>
- Loading branch information
1 parent
0e3fe8b
commit 8a7cd6b
Showing
1 changed file
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,4 +58,22 @@ jobs: | |
with: | ||
go-version-file: go.mod | ||
- name: run vulnerability detect | ||
run: make govulncheck | ||
run: make govulncheck | ||
|
||
vendor: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: go.mod | ||
- name: run go mod check | ||
run: go mod tidy && go mod vendor | ||
- name: Compare the expected and actual vendor directories | ||
run: | | ||
if [ "$(git diff --ignore-space-at-eol vendor/ | wc -l)" -gt "0" ]; then | ||
echo "Detected different on vendor folder. See status below:" | ||
git diff | ||
exit 1 | ||
fi | ||
id: diff |