Skip to content

Commit 52fe484

Browse files
committed
embed bundles so go install works correctly.
1 parent 24cbbf2 commit 52fe484

6 files changed

Lines changed: 18794 additions & 1 deletion

File tree

.github/workflows/build.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
run: npm ci && npm run build
3232
working-directory: html-report/ui
3333

34+
- name: Verify embedded UI bundles are committed
35+
run: |
36+
status="$(git status --porcelain --untracked-files=all -- html-report/ui/build/static)"
37+
test -z "$status" || { echo "$status"; exit 1; }
38+
3439
- name: Get dependencies
3540
run: go get -v -t -d ./...
3641

@@ -59,3 +64,8 @@ jobs:
5964
- name: Build
6065
run: npm run build
6166
working-directory: html-report/ui
67+
68+
- name: Verify embedded UI bundles are committed
69+
run: |
70+
status="$(git status --porcelain --untracked-files=all -- html-report/ui/build/static)"
71+
test -z "$status" || { echo "$status"; exit 1; }

.github/workflows/publish.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
run: npm ci && npm run build
3131
working-directory: html-report/ui
3232

33+
- name: Verify embedded UI bundles are committed
34+
run: |
35+
status="$(git status --porcelain --untracked-files=all -- html-report/ui/build/static)"
36+
test -z "$status" || { echo "$status"; exit 1; }
37+
3338
- name: Run GoReleaser
3439
uses: goreleaser/goreleaser-action@v6
3540
with:

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
.idea/
22
.github/vhs/tmp/
33
dist/demos/
4-
html-report/ui/build/
4+
html-report/ui/build/*
5+
!html-report/ui/build/static/
6+
html-report/ui/build/static/*
7+
!html-report/ui/build/static/bundle.js
8+
!html-report/ui/build/static/bundle-lite.js
9+
!html-report/ui/build/static/bundle.css
510
html-report/ui/node_modules/

html-report/ui/build/static/bundle-lite.js

Lines changed: 9363 additions & 0 deletions
Large diffs are not rendered by default.

html-report/ui/build/static/bundle.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html-report/ui/build/static/bundle.js

Lines changed: 9408 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)