1 Commits
Author SHA1 Message Date
alu 3147aabca8 add static analysis action
ProxmoxAAS-Dashboard Go Static Analysis Check / lint-check (push) Successful in 32s
ProxmoxAAS-Dashboard Code Style Check / lint-check (push) Successful in 15s
2026-07-29 20:07:57 +00:00
2 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -3,7 +3,7 @@ run-name: Go static analysis check on ${{ gitea.repository }} ${{ gitea.ref_name
on: on:
push: push:
branches: branches:
- "*" - '*'
jobs: jobs:
lint-check: lint-check:
@@ -12,12 +12,12 @@ jobs:
- name: Check Out Repository - name: Check Out Repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: "true" submodules: 'true'
- name: Initialize Runner - name: Initialize Runner
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: "go.mod" go-version-file: 'go.mod'
- name: Initialize Go - name: Initialize Go
run: make build-web && go get . run: make build-web && go get .
@@ -29,5 +29,5 @@ jobs:
- name: Verify Static Analysis - name: Verify Static Analysis
if: > if: >
steps.static_govet.outcome != "success" steps.static_govet.outcome != 'success'
run: exit 1 run: exit 1
+6 -6
View File
@@ -3,7 +3,7 @@ run-name: Code style check on ${{ gitea.repository }} ${{ gitea.ref_name }} ${{
on: on:
push: push:
branches: branches:
- "*" - '*'
jobs: jobs:
lint-check: lint-check:
@@ -34,12 +34,12 @@ jobs:
- name: Run HTMLValidate - name: Run HTMLValidate
id: html_lint id: html_lint
run: npx html-validate --config dev_config/.htmlvalidate.json "web/html/**/*" run: npx html-validate --config dev_config/.htmlvalidate.json 'web/html/**/*'
- name: Run Stylelint - name: Run Stylelint
id: style_lint id: style_lint
if: always() if: always()
run: npx stylelint --config dev_config/.stylelintrc.json --formatter verbose --fix "web/css/**/*.css" run: npx stylelint --config dev_config/.stylelintrc.json --formatter verbose --fix 'web/css/**/*.css'
- name: Run ESLint - name: Run ESLint
id: js_lint id: js_lint
@@ -50,7 +50,7 @@ jobs:
- name: Verify Linters - name: Verify Linters
if: > if: >
steps.html_lint.outcome != "success" || steps.html_lint.outcome != 'success' ||
steps.style_lint.outcome != "success" || steps.style_lint.outcome != 'success' ||
steps.js_lint.outcome != "success" steps.js_lint.outcome != 'success'
run: exit 1 run: exit 1