chore: move porcelain to makefile

This commit is contained in:
andig 2022-09-16 13:29:14 +02:00
parent bd89d09335
commit b862cf0e12
2 changed files with 6 additions and 7 deletions

View file

@ -27,14 +27,8 @@ jobs:
- name: Assets
run: make assets
- name: Format & Tidy
run: |
gofmt -w -l $(find . -name '*.go')
go mod tidy
- name: Porcelain
run: |
test -z "$(git status --porcelain)" || (git status; git diff; false)
run: make porcelain
build:
name: Build

View file

@ -64,6 +64,11 @@ test:
@echo "Running testsuite"
go test $(BUILD_TAGS) ./...
porcelain:
gofmt -w -l $$(find . -name '*.go')
go mod tidy
test -z "$$(git status --porcelain)" || (git status; git diff; false)
build:
@echo Version: $(VERSION) $(SHA) $(BUILD_DATE)
go build -v $(BUILD_TAGS) $(BUILD_ARGS)