1 Commits
Author SHA1 Message Date
alu 3307d08d22 add lint workflow, remove node package
ProxmoxAAS-Dashboard Code Style Check / lint-check (push) Failing after 0s
2026-07-29 03:15:09 +00:00
+8 -6
View File
@@ -9,13 +9,15 @@ jobs:
lint-check: lint-check:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out ${{ gitea.repository }} ${{ gitea.ref }} ${{ gitea.sha }} - name: Check Out Repository
uses: actions/checkout@v4 uses: actions/checkout@v4
run: echo "Checked out ${{ gitea.repository }} ${{ gitea.ref }} ${{ gitea.sha }}"
- name: Initialize ${{ runner.os }} ${{ runner.arch }} - name: Initialize Runner
uses: actions/setup-node@v4 uses: actions/setup-node@v4
run: echo "Initialized ${{ runner.os }} ${{ runner.arch }}"
- name: Install linters - name: Install Linters
run: | run: |
npm install --no-save \ npm install --no-save \
@eslint/eslintrc \ @eslint/eslintrc \
@@ -26,13 +28,13 @@ jobs:
stylelint \ stylelint \
stylelint-config-standard stylelint-config-standard
- name: Verify linters - name: Verify Linters
run: | run: |
npx html-validate --version npx html-validate --version
npx stylelint --version npx stylelint --version
npx eslint --version npx eslint --version
- name: Run HTML Validate - 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/**/*"
@@ -48,7 +50,7 @@ jobs:
DEBUG: eslint:cli-engine DEBUG: eslint:cli-engine
run: npx eslint --config dev_config/eslint.config.mjs --fix web/scripts/ run: npx eslint --config dev_config/eslint.config.mjs --fix web/scripts/
- name: Verify All Linters Passed - name: Verify Linters
if: always() if: always()
run: | run: |
if [ "${{ steps.html_lint.outcome }}" != "success" ] || \ if [ "${{ steps.html_lint.outcome }}" != "success" ] || \