initial workflows

This commit is contained in:
alu
2026-07-30 18:58:23 +00:00
commit eb5cd1a968
3 changed files with 136 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
name: Static Analysis -- Golang
run-name: 'Static Analysis -- Golang -- ${{ gitea.repository }} ${{ gitea.ref_name }} ${{ gitea.sha }}'
on:
push:
branches:
- '*'
paths:
- '**/*.go'
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: Run Make Hook
uses : ./.gitea/scoped_workflows/make-workflow-init-hook.yaml
- name: Initialize Go
run: 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