Files
ProxmoxAAS-Dashboard/.gitea/workflows/go_static.yaml
T
alu 75f6321869
ProxmoxAAS-Dashboard Go Server Static Analysis Check / lint-check (push) Successful in 13s
ProxmoxAAS-Dashboard Web Components Style Check / lint-check (push) Successful in 18s
add static analysis action
2026-07-29 22:07:10 +00:00

33 lines
792 B
YAML

name: ProxmoxAAS-Dashboard Go Server Static Analysis Check
run-name: Static analysis check on go server in ${{ 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
with:
submodules: 'true'
- 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