---
name: Check Them Vim Files

on:
  push:
  pull_request:
    branches: [$default-branch]

jobs:
  lint:
    runs-on: ubuntu-latest
    name: Linting
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v4
        with:
          python-version: "3.x"
      - name: Install Vint
        run: |
          python -m pip install --upgrade pip setuptools wheel
          pip install --upgrade vim-vint
      - name: Vinting code
        run: vint --verbose --stat $(find . -type f -name '*.vim')
