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:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user