Compare commits
1
Commits
1d97050fb7
...
cc6aa6ec13
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc6aa6ec13 |
@@ -0,0 +1,35 @@
|
|||||||
|
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: Run Linters
|
||||||
|
run: |
|
||||||
|
html-validate --config dev_config/.htmlvalidate.json web/html/*; \
|
||||||
|
stylelint --config dev_config/.stylelintrc.json --formatter verbose web/css/*.css; \
|
||||||
|
eslint --config dev_config/eslint.config.mjs web/scripts/
|
||||||
Reference in New Issue
Block a user