Skip to content

Commit

Permalink
ensure test works (#84)
Browse files Browse the repository at this point in the history
* ensure test works

* update the assets
  • Loading branch information
abice authored Feb 11, 2022
1 parent 1934401 commit e477e74
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ jobs:
with:
name: coverage
path: coverage.*

- name: Assert no changes
run: make assert-no-changes
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ clean:
rm -rf bin/
rm -rf dist/

.PHONY: assert-no-changes
assert-no-changes:
@if [ -n "$(shell git status --porcelain)" ]; then \
echo "git changes found: $(shell git status --porcelain)"; \
exit 1; \
fi

.PHONY: generate
generate:
$(GO) generate $(PACKAGES)
Expand Down Expand Up @@ -94,3 +101,6 @@ bin/goveralls: go.sum

bin/go-bindata: go.sum
$(call goinstall,github.com/kevinburke/go-bindata/go-bindata)

generate1_15: generator/assets/assets.go generator/enum.tmpl
docker run -i -t -w /app -v $(shell pwd):/app --entrypoint /bin/sh golang:1.15 -c 'make clean $(GOBINDATA) && $(GO) generate ./generator && make clean'
6 changes: 3 additions & 3 deletions generator/assets/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e477e74

Please sign in to comment.