name: Lint Frontend on: pull_request: paths: - SmartClinicManagementSystem/** push: paths: - SmartClinicManagementSystem/** jobs: lint-frontend: runs-on: node20 name: Lint HTML, CSS, and JS steps: - name: Checkout repository uses: actions/checkout@v4 with: ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }} - name: Install linters run: | npm install htmlhint stylelint stylelint-config-standard eslint - name: Lint HTML run: ./node_modules/.bin/htmlhint "./SmartClinicManagementSystem/app/src/main/resources/static/pages//*.html" || true - name: Lint CSS run: ./node_modules/.bin/stylelint "./SmartClinicManagementSystem/app/src/main/resources/static/assets/css//*.css" || true - name: Lint JS run: ./node_modules/.bin/eslint -c SmartClinicManagementSystem/eslint.config.js "./SmartClinicManagementSystem/app/src/main/resources/static/js//*.js" || true