.github/workflows/ci_eslint.yml
raw| 1 | name: ci_eslint |
| 2 | |
| 3 | on: |
| 4 | workflow_call: |
| 5 | |
| 6 | jobs: |
| 7 | eslint: |
| 8 | runs-on: ubuntu-latest |
| 9 | steps: |
| 10 | - name: Check out source code |
| 11 | uses: actions/checkout@v4 |
| 12 | |
| 13 | - uses: actions/setup-node@v4 |
| 14 | with: |
| 15 | node-version: 24 |
| 16 | |
| 17 | - name: Install packages |
| 18 | run: npm ci |
| 19 | |
| 20 | - name: Show installed packages |
| 21 | run: npm ls |
| 22 | |
| 23 | - name: Run eslint |
| 24 | run: ./node_modules/.bin/eslint ./ |
| 25 | |
| 26 | - name: Run stylelint |
| 27 | run: ./node_modules/.bin/stylelint ./**/*.css ./**/*.html ./**/*.js |