aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci_eslint.yml
blob: a4fe0fc313529404b79ac51cf9d4a7dd421c6d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: ci_eslint

on:
  workflow_call:

jobs:
  eslint:
    runs-on: ubuntu-latest
    steps:
      - name: Check out source code
        uses: actions/checkout@v4

      - uses: actions/setup-node@v4
        with:
          node-version: 20

      - name: Install packages
        run: npm ci

      - name: Show installed packages
        run: npm ls

      - name: Run eslint
        run: ./node_modules/.bin/eslint ./

      - name: Run stylelint
        run: ./node_modules/.bin/stylelint ./**/*.css ./**/*.html ./**/*.js