summaryrefslogtreecommitdiff
path: root/.github/workflows/doc-checks.yml
blob: df0e53fc3fb11236b11412a182523000aa6af803 (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
28
29
30
31
32
33
34
35
36
37
name: doc-checks

on:
  push:
    paths:
      - ".github/workflows/doc-checks.yml"
      - "docs/**"
  pull_request:
    paths:
      - ".github/workflows/doc-checks.yml"
      - "docs/**"

jobs:
  lint:
    runs-on: ubuntu-latest
    name: ESLint

    steps:
      - uses: actions/checkout@v2
      - uses: bahmutov/npm-install@v1
        with:
          working-directory: docs
      - name: ESLint
        run: npm run lint
        working-directory: docs
  prettier:
    runs-on: ubuntu-latest
    name: Prettier

    steps:
      - uses: actions/checkout@v2
      - uses: bahmutov/npm-install@v1
        with:
          working-directory: docs
      - name: Prettier Check
        run: npm run prettier:check
        working-directory: docs