add lint workflow
ProxmoxAAS-Dashboard Code Style Check / lint-check (push) Successful in 10s

This commit is contained in:
alu
2026-07-29 02:59:31 +00:00
parent 4582d9726d
commit 177334bf6f
+39
View File
@@ -0,0 +1,39 @@
name: ProxmoxAAS-Dashboard Code Style Check
run-name: Code style check on ${{gitea.repository}} ${{gitea.ref_name}} ${{gitea.sha}}
on:
push:
branches:
- "*"
jobs:
lint-check:
runs-on: ubuntu-latest
steps:
- name: Initialize ${{runner.os}} ${{runner.arch}}
uses: actions/setup-node@v4
- name: Install linters
run: |
npm install -g \
@eslint/eslintrc \
@eslint/js \
eslint \
globals \
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: Check HTML
continue-on-error: true
run: html-validate --config dev_config/.htmlvalidate.json "web/html/**/*"
- name: Check CSS
continue-on-error: true
run: stylelint --config dev_config/.stylelintrc.json --formatter verbose --fix "web/css/**/*.css"
- name: Check JS
continue-on-error: true
run: eslint --config dev_config/eslint.config.mjs --fix web/scripts/