
name: Whitespace

on:
  push:
    paths-ignore:
      - 'tsc/meetings/**'
  pull_request:
    paths-ignore:
      - 'tsc/meetings/**'

jobs:
  # Search the git repository for any trailing spaces
  trailingspaces:
    runs-on: ubuntu-16.04
    steps:
    - uses: actions/checkout@v2
    - name: test
      run: |
          set +e
          git grep -n -I -E '^.+[ ]+$' -- './*'
          test $? -eq 1

  # Search for any tabs excluding Makefiles, meeting notes, image files and a few others
  spacesnottabs:
    runs-on: ubuntu-16.04
    steps:
    - uses: actions/checkout@v2
    - name: test
      run: |
          set +e
          git grep -n "	" -- ':!*/Makefile' ':!*/whitespace.yml' ':!tsc/meetings/*' ':!*.svg' ':!*.cmd' ':!*.png'
          test $? -eq 1


name: Whitespace

on:
  push:
    paths-ignore:
      - 'tsc/meetings/**'
  pull_request:
    paths-ignore:
      - 'tsc/meetings/**'

jobs:
  # Search the git repository for any trailing spaces excluding meeting notes
  trailingspaces:
    runs-on: ubuntu-16.04
    steps:
    - uses: actions/checkout@v2
    - name: test
      run: |
          set +e
          git grep -n -I -E '^.+[ ]+$' -- ':!tsc/meetings/*'
          test $? -eq 1

  # Search for any tabs excluding Makefiles, meeting notes, image files and a few others
  spacesnottabs:
    runs-on: ubuntu-16.04
    steps:
    - uses: actions/checkout@v2
    - name: test
      run: |
          set +e
          git grep -n "	" -- ':!*/Makefile' ':!*/whitespace.yml' ':!tsc/meetings/*' ':!*.svg' ':!*.cmd' ':!*.png'
          test $? -eq 1

Exclude meeting notes from trailing space checks
Exclude meeting notes from trailing space checks

Signed-off-by: Dan Bailey <39b6ae1dd30d9ab3cd77a2d084b277520f14c203@ilm.com>
