add static analysis action
Static Analysis - Golang / lint-check (push) Successful in 17s
Code Style - Web Components / lint-check (push) Successful in 16s

This commit is contained in:
alu
2026-07-29 22:38:40 +00:00
parent ce1576fbd6
commit 14bd0690da
3 changed files with 51 additions and 27 deletions
+33
View File
@@ -0,0 +1,33 @@
name: Static Analysis - Golang
run-name: 'Static Analysis -- [${{ gitea.repository }} ${{ gitea.ref_name }} ${{ gitea.sha }} -- Golang'
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