chore: move porcelain to makefile
This commit is contained in:
parent
bd89d09335
commit
b862cf0e12
2 changed files with 6 additions and 7 deletions
8
.github/workflows/default.yml
vendored
8
.github/workflows/default.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
5
Makefile
5
Makefile
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue