1 Commits
Author SHA1 Message Date
alu 177334bf6f add lint workflow
ProxmoxAAS-Dashboard Code Style Check / lint-check (push) Successful in 10s
2026-07-29 02:59:31 +00:00
+6 -26
View File
@@ -11,7 +11,6 @@ jobs:
steps:
- name: Initialize ${{runner.os}} ${{runner.arch}}
uses: actions/setup-node@v4
- name: Install linters
run: |
npm install -g \
@@ -22,38 +21,19 @@ jobs:
html-validate \
stylelint \
stylelint-config-standard
- name: Verify linters
run: |
eslint --version
stylelint --version
html-validate --version
- name: Check out ${{gitea.repository}} ${{gitea.ref}} ${{gitea.sha}}
uses: actions/checkout@v4
- name: Run HTML Validate
id: html_lint
- name: Check HTML
continue-on-error: true
run: html-validate --config dev_config/.htmlvalidate.json "web/html/**/*"
- name: Run Stylelint
id: style_lint
if: always()
- name: Check CSS
continue-on-error: true
run: stylelint --config dev_config/.stylelintrc.json --formatter verbose --fix "web/css/**/*.css"
- name: Run ESLint
id: js_lint
if: always()
env:
DEBUG: eslint:cli-engine
- name: Check JS
continue-on-error: true
run: eslint --config dev_config/eslint.config.mjs --fix web/scripts/
- name: Verify All Linters Passed
if: always()
run: |
if [ "${{ steps.html_lint.outcome }}" != "success" ] || \
[ "${{ steps.style_lint.outcome }}" != "success" ] || \
[ "${{ steps.js_lint.outcome }}" != "success" ]; then
echo "At least one linter failed."
exit 1
fi