.github: add check to verify vendor directory
Make sure we don't slip any changes in there accidentally. Signed-off-by: Casey Callendrello <c1@caseyc.net>
This commit is contained in:
parent
01a94e17c7
commit
03712a572b
14
.github/workflows/test.yaml
vendored
14
.github/workflows/test.yaml
vendored
@ -27,6 +27,20 @@ jobs:
|
|||||||
version: v1.55.2
|
version: v1.55.2
|
||||||
args: -v
|
args: -v
|
||||||
skip-cache: true
|
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:
|
build:
|
||||||
name: Build all linux architectures
|
name: Build all linux architectures
|
||||||
needs: lint
|
needs: lint
|
||||||
|
Loading…
x
Reference in New Issue
Block a user