mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 05:04:22 +00:00
fix(ci): stub web/dist before go list to satisfy go:embed at compile time
This commit is contained in:
parent
11629fba80
commit
55502070e6
1 changed files with 4 additions and 0 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -18,6 +18,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
|
- name: Stub web/dist for go:embed
|
||||||
|
run: mkdir -p web/dist && touch web/dist/.gitkeep
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
go list ./... | grep -v '/frontend/node_modules/' > /tmp/go-packages.txt
|
go list ./... | grep -v '/frontend/node_modules/' > /tmp/go-packages.txt
|
||||||
|
|
@ -31,6 +33,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
|
- name: Stub web/dist for go:embed
|
||||||
|
run: mkdir -p web/dist && touch web/dist/.gitkeep
|
||||||
- name: Install govulncheck
|
- name: Install govulncheck
|
||||||
run: go install golang.org/x/vuln/cmd/govulncheck@latest
|
run: go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||||
- name: Run govulncheck
|
- name: Run govulncheck
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue