mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-19 12:12:42 +02:00
fail on vendor directory mismatch
try this or this more
This commit is contained in:
parent
6d7a7afbbc
commit
a94c703afb
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -135,7 +135,7 @@ jobs:
|
|||||||
- name: Build integration test injector
|
- name: Build integration test injector
|
||||||
run: |
|
run: |
|
||||||
GOOS=linux go build pkg/integration/clients/injector/main.go
|
GOOS=linux go build pkg/integration/clients/injector/main.go
|
||||||
check-cheatsheet:
|
check-codebase:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GOFLAGS: -mod=vendor
|
GOFLAGS: -mod=vendor
|
||||||
@ -159,6 +159,10 @@ jobs:
|
|||||||
- name: Check Cheatsheet
|
- name: Check Cheatsheet
|
||||||
run: |
|
run: |
|
||||||
go run scripts/cheatsheet/main.go check
|
go run scripts/cheatsheet/main.go check
|
||||||
|
- name: Check Vendor Directory
|
||||||
|
# ensure our vendor directory matches up with our go modules
|
||||||
|
run: |
|
||||||
|
go mod vendor && git diff --exit-code || (echo "Unexpected change to vendor directory. Run 'go mod vendor' locally and commit the changes" && exit 1)
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
@ -183,12 +187,6 @@ jobs:
|
|||||||
uses: golangci/golangci-lint-action@v3.1.0
|
uses: golangci/golangci-lint-action@v3.1.0
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
- name: Format code
|
|
||||||
run: |
|
|
||||||
if [ $(find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;|wc -l) -gt 0 ]; then
|
|
||||||
find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
- name: errors
|
- name: errors
|
||||||
run: golangci-lint run
|
run: golangci-lint run
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user