1 Commits
Author SHA1 Message Date
alu 7f983853b0 add static analysis action
ProxmoxAAS-Dashboard Go Static Analysis Check / lint-check (push) Failing after 4s
2026-07-29 17:51:23 +00:00
2 changed files with 4 additions and 9 deletions
-1
View File
@@ -18,7 +18,6 @@ jobs:
go-version-file: 'go.mod' go-version-file: 'go.mod'
- name: Initialize Go - name: Initialize Go
run: make build-web
run: go get . run: go get .
- name: Run Go Vet - name: Run Go Vet
+4 -8
View File
@@ -1,17 +1,13 @@
.PHONY: build test clean wfa-js .PHONY: build test clean wfa-js
build: clean ensure-dist build-web build-wfa-js build: clean build-wfa-js
@echo "======================== Building Binary =======================" @echo "======================== Building Binary ======================="
mkdir -p dist
# resolve symbolic links in web by copying it into dist/web/ # resolve symbolic links in web by copying it into dist/web/
cp -rL web/ dist/web/
CGO_ENABLED=0 go build -tags release -ldflags="-s -w" -v -o dist/ . CGO_ENABLED=0 go build -tags release -ldflags="-s -w" -v -o dist/ .
ensure-dist: build-wfa-js:
mkdir -p dist
build-web: ensure-dist
cp -rL web/ dist/web/
build-wfa-js: ensure-dist
$(MAKE) -C WFA-JS $(MAKE) -C WFA-JS
cp -f WFA-JS/dist/* web/modules cp -f WFA-JS/dist/* web/modules