name: Vint

on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - '*'

jobs:
  vint:
    strategy:
      fail-fast: false

    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@master
    - name: Set up Python
      uses: actions/setup-python@v1
      with:
        python-version: 3.7
    - name: Setup dependencies
      run: pip install vim-vint
    - name: Run Vimscript Linter
      run: vint .
