main: embed assets from www to allows PWD to run standalone (#425)

Generate these assets in config because this package is imported by
most.

Add internal/addgenheader as a simple helper because go-bindata doesn't
output the write header.

Also update test CI workflow to regenerate and check commit is clean.
This commit is contained in:
Paul Jolly
2020-10-06 14:33:11 +01:00
committed by GitHub
parent db603ec953
commit 1e0eb1f329
9 changed files with 591 additions and 1 deletions

View File

@@ -22,5 +22,9 @@ jobs:
uses: actions/setup-go@9fbc767707c286e568c92927bbf57d76b73e0892
with:
go-version: ${{ matrix.go_version }}
- name: Generate
run: go generate ./...
- name: Test
run: go test ./...
- name: Verify clean commit
run: test -z "$(git status --porcelain)" || (git status; git diff; false)