diff --git a/.gitea/workflows/smart-clinic-lint-docker.yml b/.gitea/workflows/smart-clinic-lint-docker.yml index 1be2ee2..29ae189 100644 --- a/.gitea/workflows/smart-clinic-lint-docker.yml +++ b/.gitea/workflows/smart-clinic-lint-docker.yml @@ -20,7 +20,7 @@ jobs: with: dockerfile: ./SmartClinicManagementSystem/app/Dockerfile output-file: hadolint.log - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v3 with: name: hadolint.log path: hadolint.log \ No newline at end of file diff --git a/.gitea/workflows/smart-clinic-lint-frontend.yml b/.gitea/workflows/smart-clinic-lint-frontend.yml index 2bf2626..967675b 100644 --- a/.gitea/workflows/smart-clinic-lint-frontend.yml +++ b/.gitea/workflows/smart-clinic-lint-frontend.yml @@ -17,10 +17,10 @@ jobs: ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }} - name: Install linters run: | - npm install -g htmlhint stylelint stylelint-config-standard eslint + npm install htmlhint stylelint stylelint-config-standard eslint - name: Lint HTML - run: htmlhint "./SmartClinicManagementSystem/app/src/main/resources/static/pages//*.html" || true + run: ./node_modules/.bin/htmlhint "./SmartClinicManagementSystem/app/src/main/resources/static/pages//*.html" || true - name: Lint CSS - run: stylelint "./SmartClinicManagementSystem/app/src/main/resources/static/assets/css//*.css" || true + run: ./node_modules/.bin/stylelint "./SmartClinicManagementSystem/app/src/main/resources/static/assets/css//*.css" || true - name: Lint JS - run: eslint -c SmartClinicManagementSystem/eslint.config.js "./SmartClinicManagementSystem/app/src/main/resources/static/js//*.js" || true \ No newline at end of file + run: ./node_modules/.bin/eslint -c SmartClinicManagementSystem/eslint.config.js "./SmartClinicManagementSystem/app/src/main/resources/static/js//*.js" || true \ No newline at end of file