Skip to content

Commit

Permalink
chore: move porcelain to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Sep 16, 2022
1 parent bd89d09 commit b862cf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b862cf0

Please sign in to comment.