Skip to content

Commit

Permalink
.github: add check to verify vendor directory
Browse files Browse the repository at this point in the history
Make sure we don't slip any changes in there accidentally.

Signed-off-by: Casey Callendrello <[email protected]>
  • Loading branch information
squeed committed Sep 16, 2024
1 parent 01a94e1 commit 03712a5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ jobs:
version: v1.55.2
args: -v
skip-cache: true
verify-vendor:
name: Verify vendor directory
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Check module vendoring
run: |
go mod tidy
go mod vendor
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy && go mod vendor', and submit your changes"; exit 1)
build:
name: Build all linux architectures
needs: lint
Expand Down

0 comments on commit 03712a5

Please sign in to comment.