summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/lint.yml
blob: f949c5bbc25946b3d642627e24e4e250a16f2291 (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
name: Lint

on: [pull_request]

jobs:
  misspell:
    name: Check Spelling
    runs-on: ubuntu-latest
    steps:
      - name: Check Out
        uses: actions/checkout@v2
      - name: Install
        run: |
          wget -O - -q https://git.io/misspell | sh -s -- -b .
      - name: Misspell
        run: |
          git ls-files --empty-directory | xargs ./misspell -error
  merge-conflict:
    name: Merge Conflict
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Check merge conflict
        run: |
          grep "^<<<<<<< HEAD" $(git ls-files | xargs) && exit 1 || true
  trailing-whitespace:
    name: Trailing whitespace
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Check for trailing whitespace
        run: "! git grep -EIn $'[ \t]+$'"