1 Commits
Author SHA1 Message Date
alu 396f1cb481 add static analysis action
ProxmoxAAS-Dashboard Go Static Analysis Check / lint-check (push) Failing after 23s
ProxmoxAAS-Dashboard Code Style Check / lint-check (push) Failing after 12s
2026-07-29 20:06:58 +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:
push:
branches:
- '*'
- "*"
jobs:
lint-check:
@@ -12,12 +12,12 @@ jobs:
- name: Check Out Repository
uses: actions/checkout@v4
with:
submodules: 'true'
submodules: "true"
- name: Initialize Runner
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
- name: Initialize Go
run: make build-web && go get .
@@ -29,5 +29,5 @@ jobs:
- name: Verify Static Analysis
if: >
steps.static_govet.outcome != 'success'
steps.static_govet.outcome != "success"
run: exit 1
+6 -6
View File
@@ -3,7 +3,7 @@ run-name: Code style check on ${{ gitea.repository }} ${{ gitea.ref_name }} ${{
on:
push:
branches:
- '*'
- "*"
jobs:
lint-check:
@@ -34,12 +34,12 @@ jobs:
- name: Run HTMLValidate
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
id: style_lint
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
id: js_lint
@@ -50,7 +50,7 @@ jobs:
- name: Verify Linters
if: >
steps.html_lint.outcome != 'success' ||
steps.style_lint.outcome != 'success' ||
steps.js_lint.outcome != 'success'
steps.html_lint.outcome != "success" ||
steps.style_lint.outcome != "success" ||
steps.js_lint.outcome != "success"
run: exit 1