add static analysis action
ProxmoxAAS-Dashboard Go Static Analysis Check / lint-check (push) Failing after 3s
ProxmoxAAS-Dashboard Code Style Check / lint-check (push) Successful in 13s

This commit is contained in:
alu
2026-07-29 17:57:32 +00:00
parent ce1576fbd6
commit 94f26ebee2
3 changed files with 44 additions and 22 deletions
+31
View File
@@ -0,0 +1,31 @@
name: ProxmoxAAS-Dashboard Go Static Analysis Check
run-name: Go static analysis check on ${{ gitea.repository }} ${{ gitea.ref_name }} ${{ gitea.sha }}
on:
push:
branches:
- "*"
jobs:
lint-check:
runs-on: ubuntu-latest
steps:
- name: Check Out Repository
uses: actions/checkout@v4
- name: Initialize Runner
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
- name: Initialize Go
run: make build-web && go get .
- name: Run Go Vet
id: static_govet
if: always()
run: go vet ./...
- name: Verify Static Analysis
if: >
steps.static_govet.outcome != 'success'
run: exit 1